/* Storage Types Overview Section - Mobile-First Design */
.storage-types-overview-section {
  margin: 0;
  padding: 12px 0 var(--spacing-xl) 0;
  background-color: white;
  position: relative;
}

.storage-types-overview-section .container {
  max-width: 1168px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}


/* Desktop: 2 columns side by side */
.storage-types-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-xl) * 1.5);
  margin: 0;
  padding: 0;
}

.storage-type-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: calc(var(--spacing-lg) * 1.5);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.storage-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--primary-color) 15%, transparent), 
              0 10px 10px -5px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.storage-type-image {
  width: 100%;
  height: 200px;
  margin-bottom: calc(var(--spacing-md) * 1.25);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storage-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storage-type-placeholder {
  font-size: 3rem;
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.storage-type-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: calc(var(--spacing-sm) * 1.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
}

.storage-type-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
  opacity: 0.7;
}

.storage-type-content {
  text-align: left;
  width: 100%;
}

.storage-type-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.storage-type-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.storage-type-content li {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: var(--spacing-xs);
  padding-left: calc(var(--spacing-md) * 1.5);
  position: relative;
}

.storage-type-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* Mobile Layout */
@media (max-width: 1023px) {
  .storage-types-overview-section {
    margin: 0 0 0 0;
    padding: var(--spacing-lg) 0;
  }
  
  .storage-types-overview-section .container {
    padding: 0 var(--spacing-md);
  }
  
  .storage-types-overview-grid {
    display: block;
    gap: 0;
  }
  
  .storage-type-card {
    margin-bottom: calc(var(--spacing-lg) * 1.5);
    padding: var(--spacing-md);
  }
  
  .storage-type-card:last-child {
    margin-bottom: 0;
  }
  
  .storage-type-card:hover {
    transform: none;
    box-shadow: 0 8px 15px -3px color-mix(in srgb, var(--primary-color) 15%, transparent);
  }
  
  .storage-type-image {
    height: 150px;
    margin-bottom: var(--spacing-md);
  }
  
  .storage-type-placeholder {
    font-size: 2.5rem;
  }
  
  .storage-type-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .storage-type-content h4 {
    font-size: 1rem;
    margin-bottom: calc(var(--spacing-sm) * 0.75);
  }
  
  .storage-type-content li {
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-xs) * 0.75);
    padding-left: var(--spacing-md);
  }
}
/* Location Overview Component - Mobile-First Design */

/* Filter Section (only shown on Storage Size Detail Pages) */
.location-overview__filter {
  display: block;
  margin-bottom: var(--spacing-md);
}

/* Availability Filter Section (only shown on Homepage) */
.location-overview__availability-filter {
  display: block;
  margin-bottom: var(--spacing-md);
}

/* Desktop version - positioned within content layout */
.location-overview__filter--desktop,
.location-overview__availability-filter--desktop {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.location-overview__filter .location-overview__filter-content,
.location-overview__availability-filter .location-overview__availability-filter-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0;
}

.location-overview__filter .location-overview__filter-toggle,
.location-overview__availability-filter .location-overview__availability-filter-toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  user-select: none;
}

.location-overview__filter .location-overview__filter-checkbox,
.location-overview__availability-filter .location-overview__availability-filter-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.location-overview__filter .location-overview__filter-label,
.location-overview__availability-filter .location-overview__availability-filter-label {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
}

.location-overview__filter .location-overview__filter-toggle:hover .location-overview__filter-label,
.location-overview__availability-filter .location-overview__availability-filter-toggle:hover .location-overview__availability-filter-label {
  color: var(--primary-color);
}

/* Show/hide desktop and mobile labels based on viewport */
.location-overview__availability-filter-label-desktop {
  display: inline;
}

.location-overview__availability-filter-label-mobile {
  display: none;
}

/* Storage Size Filter: Desktop shows desktop label, hides mobile label */
.location-overview__filter-label-desktop {
  display: inline;
}

.location-overview__filter-label-mobile {
  display: none;
}

/* Desktop Layout - Default */
.location-overview {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--spacing-md) var(--spacing-xl) var(--spacing-md);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-xl) * 0.5);
  grid-template-areas:
    "title title"
    "subtitle subtitle"  
    "search search"
    "content map";
}

.location-overview .section-title {
  grid-area: title;
}

.location-overview .locations-subtitle {
  grid-area: subtitle;
  text-align: center;
}

.location-overview__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
}

.location-overview__map {
  grid-area: map;
  width: 100%;
  height: 600px;
  border-radius: 2px;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 0;
  position: sticky;
  top: calc(56px + var(--spacing-lg));
  align-self: start;
}

.location-overview__map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
}

.location-overview__map-icon {
  margin-bottom: var(--spacing-sm);
}

.location-overview__map-placeholder small {
  font-size: 0.8rem;
  color: #999;
  margin-top: var(--spacing-sm);
}

.location-overview__search {
  grid-area: search;
  display: flex;
  justify-content: center;
  margin: 0;
}

.location-overview__search-container {
  background-color: var(--accent-color, #f8f9fa);
  border: 2px solid rgba(var(--primary-color-rgb, 6, 80, 125), 0.3);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
  align-items: stretch;
  width: 100%;
}

.location-overview__search-input {
  flex: 1;
  width: auto;
  position: relative;
}

.location-overview__search-input input {
  width: 100%;
  height: 56px;
  padding: var(--spacing-md);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius);
  font-size: 1.1rem;
  outline: none;
  transition: all 0.3s ease;
  background-color: color-mix(in srgb, var(--primary-color) 5%, white);
  font-family: inherit;
  padding: 0 var(--spacing-lg);
}

.location-overview__search-input input:focus {
  border-color: var(--primary-color);
  background-color: color-mix(in srgb, var(--primary-color) 10%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.location-overview__search-input input::placeholder {
  color: #999;
  font-style: italic;
}

.location-overview__search-button {
  background: var(--primary-color);
  color: white;
  border: none;
  height: 56px;
  padding: 0 var(--spacing-md);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  width: auto;
  line-height: 1.2;
  text-align: center;
}

.location-overview__search-button:hover {
  background: color-mix(in srgb, var(--primary-color) 90%, black);
  transform: translateY(-1px);
}

.location-overview__search-button:active {
  transform: translateY(0);
}

/* Tooltip Styles */
.location-overview__tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: var(--primary-color);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 1.02rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.location-overview__tooltip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.location-overview__tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--primary-color);
}

.location-overview__tooltip-content {
  font-weight: 500;
  line-height: 1.3;
}

.location-overview__cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Desktop shows only first 5 cards */
.location-overview__card:nth-child(n+6) {
  display: none;
}

.location-overview__card {
  background: white;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: var(--spacing-md);
  position: relative;
  transition: all 0.3s ease;
}

.location-overview__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.location-overview__card-header {
  position: relative;
  margin-bottom: 8px;
}

.location-overview__ribbon {
  position: absolute;
  top: 0;
  left: -16px;
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 0 4px 4px 0;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10;
}

.location-overview__price {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  z-index: 10;
}

.location-overview__price-top {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.location-overview__price-prefix {
  font-size: 1.125rem;
  font-weight: 400;
  color: #666;
  line-height: 1;
}

.location-overview__price-amount {
  font-size: 1.65rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.location-overview__price-suffix {
  font-size: 1.125rem;
  font-weight: 400;
  color: #666;
  line-height: 1;
}

.location-overview__card-content {
  margin-top: 40px;
}

.location-overview__card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px 0;
}

.location-overview__storage-type {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-color);
  margin: 0 0 8px 0;
}

.location-overview__card-address {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 16px;
}

.location-overview__availability {
  margin-bottom: 16px;
}

.location-overview__availability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4.5px 0;
  border-bottom: 1px solid #e0e0e0;
}

.location-overview__availability-row:last-child {
  border-bottom: none;
}

.location-overview__availability-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-overview__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.location-overview__status-dot.available {
  background: #4ade80;
}

.location-overview__status-dot.limited {
  background: #f59e0b;
}

.location-overview__status-dot.unavailable {
  background: #ef4444;
}

.location-overview__size-label {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.location-overview__availability-price {
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
  text-align: right;
}

.location-overview__card-cta {
  display: block;
  width: 100%;
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
}


.location-overview__footer-button {
  background: var(--primary-color);
  color: white;
  border: none;
  height: 48px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-decoration: none;
}

.location-overview__footer-button:hover {
  background: color-mix(in srgb, var(--primary-color) 90%, black);
  transform: translateY(-1px);
}

.location-overview__footer-button:active {
  transform: translateY(0);
}

/* Mobile Layout */
@media (max-width: 1023px) {
  /* Filter Section - Mobile adjustments */
  .location-overview__filter,
  .location-overview__availability-filter {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
  }
  
  .location-overview__filter .location-overview__filter-content,
  .location-overview__availability-filter .location-overview__availability-filter-content {
    width: 100%;
    border-radius: var(--radius);
    margin: 0;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border: none;
    padding: 10px var(--spacing-md);
  }
  
  .location-overview__availability-filter .location-overview__availability-filter-checkbox {
    width: 18px;
    height: 18px;
  }
  
  /* Show mobile label and hide desktop label on mobile */
  .location-overview__availability-filter-label-desktop {
    display: none;
  }
  
  .location-overview__availability-filter-label-mobile {
    display: inline;
  }

  .location-overview {
    max-width: 100%;
    margin: 0;
    padding: 0 16px 16px 16px;
    display: block;
    grid-template-columns: none;
    gap: 0;
    grid-template-areas: none;
  }

  .location-overview .section-title {
    grid-area: auto;
    padding-top: 20px;
  }
  
  .location-overview .locations-subtitle {
    grid-area: auto;
    text-align: left;
  }
  
  .location-overview__content {
    grid-area: auto;
    display: flex;
    flex-direction: column;
  }
  
  .location-overview__map {
    grid-area: auto;
    width: 100%;
    height: 277px;
    margin-bottom: 12px;
    position: static;
    top: auto;
    align-self: auto;
  }
  
  .location-overview__search {
    grid-area: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    justify-content: flex-start;
  }
  
  .location-overview__search-container {
    display: contents;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    width: auto;
  }
  
  .location-overview__search-input {
    width: calc(50% - 6px);
    flex: none;
    position: relative;
  }
  
  .location-overview__search-input input {
    height: 48px;
    padding: 0 16px;
    font-size: 1rem;
    font-family: inherit;
  }
  
  .location-overview__search-input input:focus {
    box-shadow: none;
  }
  
  .location-overview__search-input input::placeholder {
    color: #999;
    font-style: normal;
  }
  
  .location-overview__search-button {
    height: 48px;
    padding: 0 16px;
    font-size: 0.9rem;
    font-weight: 500;
    width: calc(50% - 6px);
    flex: none;
  }
  
  .location-overview__cards {
    gap: 24px;
    margin-bottom: 24px;
  }
  
  /* Hide cards 4 and 5 on mobile (show only first 3) */
  .location-overview__card:nth-child(n+4) {
    display: none;
  }
  
  .location-overview__card {
    padding: 16px;
  }
  
  .location-overview__footer-button {
    height: 48px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: auto;
  }
  
  /* Mobile Tooltip Adjustments */
  .location-overview__tooltip {
    font-size: 0.96rem;
    padding: 8px 12px;
    white-space: normal;
    min-width: 280px;
    max-width: 90vw;
    text-align: center;
    line-height: 1.4;
    left: 10px;
    right: 10px;
    transform: none;
  }
  
  .location-overview__tooltip-arrow {
    left: 25%;
  }
  
  .location-overview__tooltip-content {
    font-weight: 400;
  }

  /* Show storage size filter on mobile with adjusted labels */
  .location-overview__filter--desktop {
    display: block;
  }

  /* Storage Size Filter: Hide desktop label, show mobile label on mobile */
  .location-overview__filter-label-desktop {
    display: none;
  }

  .location-overview__filter-label-mobile {
    display: inline;
  }
}
/* Footer */
.footer {
  background-color: #333;
  color: white;
  padding: var(--spacing-xl) 0;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.footer__section h3 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer__link {
  color: #ccc;
  display: block;
  padding: var(--spacing-xs) 0;
}

.footer__link:hover {
  color: white;
}

/* Footer Contact Links - Domain Color Styling */
.footer__section a[href^="tel:"],
.footer__section a[href^="mailto:"] {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer__section a[href^="tel:"]:hover,
.footer__section a[href^="mailto:"]:hover {
  color: color-mix(in srgb, var(--primary-color) 80%, white);
  text-decoration: underline;
}
/* Image Modal/Lightbox - Mobile-First Design */

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  opacity: 1;
}

.image-modal__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-modal__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  transition: all 0.2s ease;
  z-index: 10000;
}

.image-modal__close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.image-modal__title {
  color: white;
  font-size: 18px;
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
}

/* Make storage images clickable */
.storage-sizes-columns-image,
.storage-size-preview-columns-image,
.location-storage-units__image {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.storage-sizes-columns-image:hover,
.storage-size-preview-columns-image:hover,
.location-storage-units__image:hover {
  transform: scale(1.05);
}

/* Mobile styles */
@media (max-width: 1023px) {
  .image-modal__content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .image-modal__image {
    max-height: 75vh;
  }
  
  .image-modal__close {
    top: -45px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .image-modal__title {
    font-size: 16px;
    margin-top: 12px;
  }
}