/* V2 Design System */

/* Essential Base Styles from main.css */
:root {
  --orange1: #ff5100;
  --orange2: #ff7d40;
  --orange3: #ffa87f;
  --orange4: #ffd3bf;
  --black1: #000000;
  --black2: #404040;
  --black3: #7f7f7f;
  --black4: #bfbfbf;
  --grey1: #3c3c3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1em;
}

#wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  line-height: 1.5;
  font-size: 1em;
  padding: 5px 2em;
  background-color: #FFF;
}

@media screen and (max-width: 1025px) {
  .main {
    padding: 5px 0;
  }
}

/* Links */
.main a:link { color: var(--orange2); text-decoration: none; }
.main a:active { color: var(--orange2); text-decoration: none; }
.main a:visited { color: var(--orange2); text-decoration: none; }
.main a:hover { color: var(--orange3); text-decoration: none; }

/* Messages */
.err_msg { color: var(--orange1); }
.suc_msg { color: var(--orange1); }
.orange1 { color: var(--orange1); }

/* Icons */
.icons {
  float: left;
  width: 100px;
  max-width: 100px;
  padding-right: 25px;
}

.icons_small {
  float: left;
  width: 25px;
}

/* Utility Classes */
.clear { clear: both; }
.desktop { display: static; }
.mobile { display: none; }

@media screen and (max-width: 1024px) {
  .desktop { display: none; }
  .mobile { display: static; }
}

/* Separator */
.seperator {
  background-color: var(--black3);
  color: var(--black3);
  text-align: center;
  width: 100%;
  height: 1px;
  max-height: 1px;
  margin: 15px 0;
}

/* Reset conflicting main.css styles */
.hero-section .container,
.search-section .container,
.how-it-works-section .container,
.rent-storage-section .container {
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1200px;
}

/* Override main.css button styles for our new buttons */
.btn {
  float: none !important;
  min-width: auto !important;
  width: auto !important;
}

.btn-search {
  float: none !important;
  width: auto !important;
}

/* Override main.css typography */
.hero-title {
  margin: 0 !important;
  padding: 0 !important;
}

.hero-subtitle {
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* V2 Header */
.header-v2 {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 60px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ff5100 !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: #ff5100;
  color: white !important;
}

.btn-primary:hover {
  background: #ff7d40;
  color: white !important;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #ff5100;
  border: 2px solid #ff5100;
}

.btn-outline:hover {
  background: #ff5100;
  color: white;
}

.language-switcher {
  margin-left: 1rem;
}

.lang-link {
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.lang-link:hover {
  background: #f8f9fa;
}



/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #333;
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem !important;
  line-height: 1.2;
}

.hero-section h1 {
  margin-bottom: 2rem !important;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  margin-top: 2rem !important;
  opacity: 0.9;
  text-align: left;
  max-width: none;
}

.hero-section p {
  margin-top: 2rem !important;
}

/* Quick Stats */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff5100;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-secondary {
  background: transparent;
  color: #ff5100;
  border: 2px solid #ff5100;
}

.btn-secondary:hover {
  background: #ff5100;
  color: white !important;
}

/* Search Section */
.search-section {
  padding: 3rem 0;
  background: #f8f9fa;
}

.search-section .container {
  background: transparent !important;
  padding: 2rem !important;
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-header h2 {
  color: #333;
  margin-bottom: 1rem;
}

.search-description {
  color: #666;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.search-description img {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.search-form {
  max-width: 900px;
  margin: 0 auto;
}

.search-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.search-form .form-control {
  padding: 1rem !important;
  border: 2px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  transition: border-color 0.3s ease;
  margin: 0 !important;
  width: 100% !important;
}

.form-control:focus {
  outline: none;
  border-color: #ff5100;
  box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.1);
}

.btn-search {
  background: #ff5100 !important;
  color: white !important;
  padding: 1rem 2rem !important;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer;
  font-size: 1rem !important;
  font-weight: 600;
  transition: all 0.3s ease;
  float: none !important;
  width: auto !important;
  min-width: auto !important;
}

.btn-search:hover {
  background: #ff7d40 !important;
  transform: translateY(-2px);
}

.search-filters {
  display: contents;
}

.filter-select {
  background: white;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Map Results Section - consistent with other sections */
#searchResults {
  padding: 3rem 0;
  background: white;
}

#searchResults .container {
  background: transparent !important;
  padding: 2rem !important;
}

#searchResults h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

#searchResults p {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 2rem auto !important;
  padding: 0 !important;
  color: #666;
  overflow: hidden;
}

#mapText {
  display: block;
  text-align: center;
}

/* Demand/Heatmap Section - consistent styling */
.container h2#mapTitle {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.container:last-of-type {
  padding: 3rem 0;
  background: #f8f9fa;
}

.container:last-of-type p {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 2rem auto !important;
  padding: 0 !important;
  color: #666;
  overflow: hidden;
}

.container:last-of-type span {
  display: block;
  text-align: center;
}

/* Map Improvements */
.map_full {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Storage Type Legend */
.storage-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-item img {
  width: 16px;
  height: 16px;
}

/* How It Works Section */
.how-it-works-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: white;
  transition: transform 0.3s ease;
}

.step-item:hover {
  transform: translateY(-5px);
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: #ff5100;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.step-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.step-item p {
  color: #666;
  line-height: 1.6;
}

/* Rent Storage Section */
.rent-storage-section {
  padding: 4rem 0;
  background: white;
}

.rent-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.rent-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.rent-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: left;
  max-width: 600px;
  overflow: hidden;
}

.rent-description img {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.benefits-list li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
  color: #555;
}

.benefits-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.feature-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.testimonials-section .container {
  background: transparent !important;
  padding: 2rem !important;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.testimonial-content {
  margin-bottom: 2rem;
}

.quote-icon {
  font-size: 3rem;
  color: #ff5100;
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff5100;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.author-role {
  color: #666;
  font-size: 0.9rem;
}

.webwiki-link {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.webwiki-link p {
  margin: 1rem 0 0 0 !important;
  padding: 0 !important;
  color: #666;
  font-size: 0.9rem;
}

/* V2 Footer */
.footer-v2 {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3.footer-title {
  color: #ff5100;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section h4.footer-subtitle {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff5100 !important;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: block;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 81, 0, 0.1);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
}

.footer-copyright p {
  color: #ccc;
  font-size: 0.9rem;
  margin: 0;
}

/* Enhanced Form Styles */
.input-group {
  position: relative;
}

.input-group.focused .form-control {
  border-color: #ff5100;
}

/* Responsive Design */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding-top: 80px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.mobile-menu .nav-link,
.mobile-menu .btn {
  color: white !important;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-menu .nav-link:hover {
  background: rgba(255, 81, 0, 0.2);
}

.mobile-menu .btn-primary {
  background: #ff5100;
  color: white !important;
}

.mobile-menu .btn-outline {
  border: 2px solid #ff5100;
  color: #ff5100 !important;
}

.mobile-menu .btn-outline:hover {
  background: #ff5100;
  color: white !important;
}

@media (max-width: 768px) {
  .header-nav .nav-links,
  .header-nav .nav-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .search-section .container,
  .rent-storage-section .container,
  .testimonials-section .container {
    padding: 2rem 1rem !important;
  }
  
  #searchResults .container {
    padding: 2rem 1rem !important;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .stats-row {
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .search-inputs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .rent-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .rent-text h2 {
    font-size: 2rem;
  }
  
  .feature-image {
    height: 250px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .stats-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-filters {
    grid-template-columns: 1fr;
  }
}