/* Search Results Page Styles */
/* 
 * ISOLATION: This file contains styles ONLY for the search results page.
 * All selectors are prefixed with .search-results-* to prevent conflicts.
 * Body padding is overridden here to prevent interference from shared.css
 */

/* Hide inline search box on search results page (shown only via edit-trip modal) */
body:has(.search-results-container) .search-container:not(#search-box-overlay .search-container) {
  display: none;
}

/* Override body padding for search results page */
body:has(.search-results-container) {
  padding-top: 0;
  background-color: #fff;
}

/* Override container constraint for search results page */
.container:has(.search-results-container) {
  max-width: 100%;
  width: 100%;
  padding: 0;
  overflow-x: visible;
}

/* Main container */
.search-results-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 860px;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 16px;
  padding-top: 40px;
  overflow-x: visible;
  position: relative;
}

/* Search container - isolated to search results page only (mobile search only) */
.search-results-search-container {
  display: none;
}

/* Trip Summary alignment inside search results */
.search-results-container .trip-details-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-results-container .trip-details-list li {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 4px 0;
}

.search-results-container .trip-details-list .trip-label {
  min-width: 96px;
  font-weight: 400;
  color: #333;
  text-align: left;
  margin-right: 8px;
  font-size: 15px;
}

.search-results-container .trip-details-list li span:not(.trip-label) {
  flex: 1;
  text-align: left;
  font-size: 15px;
  color: #222;
  font-weight: 600;
}

/* Filter Section */
.filter-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: auto;
  justify-content: flex-start;
  align-self: stretch;
}

.filters-bar > .filter-section:first-of-type {
  flex: 1;
  min-width: 0;
}

.filters-bar > .filter-section:first-of-type .filter-button {
  flex: 1;
  min-width: 0;
  justify-content: center;
}


.filter-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #007bff;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  height: 40px;
  box-sizing: border-box;
}

.filter-button:hover {
  background-color: #f8f9fa;
  border-color: #007bff;
}


.filter-button:active {
  background-color: #e9ecef;
}

.filter-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  border-color: #007bff;
}


/* Sort By Section */
.sort-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: auto;
  justify-content: flex-start;
  align-self: stretch;
  position: relative;
  flex: 1;
  min-width: 0;
}

.filters-bar > .sort-section .sort-button {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.sort-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #007bff;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  height: 40px;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
}

.sort-button:hover {
  background-color: #f8f9fa;
  border-color: #007bff;
}


.sort-modal {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  z-index: 1000;
  display: block;
}

.sort-modal[hidden] {
  display: none;
}

.sort-modal-content {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  width: max-content;
}

.sort-option {
  padding: 8px 14px;
  border: none;
  background: white;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sort-option:hover {
  background-color: #f5f5f5;
}

.sort-option.active {
  font-weight: 600;
  color: #007bff;
  background-color: #f0f7ff;
}

.sort-option:first-child {
  border-radius: 4px 4px 0 0;
}

.sort-option:last-child {
  border-radius: 0 0 4px 4px;
}

/* Filter Modal */
.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.filter-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.filter-modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  margin-top: 20px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.filter-modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.filter-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.filter-modal-close:hover {
  color: #333;
  background-color: #f5f5f5;
}

.filter-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

/* Price Range Inputs */
.filter-price-inputs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.price-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-input-wrapper label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.price-input-wrapper input {
  height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  box-sizing: border-box;
  width: 100%;
}

.price-input-wrapper input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  outline: none;
}

.price-separator-dash {
  font-size: 14px;
  color: #767676;
  padding-bottom: 6px;
}

/* Star Rating */
.filter-stars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-star-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.filter-star-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.filter-star-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-star-icons {
  color: #ff9800;
  letter-spacing: 1px;
}

/* Board & Accommodation Checkboxes */
.filter-board-options,
.filter-accommodation-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.filter-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Filter Modal Footer */
.filter-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  gap: 10px;
}

.filter-clear-button {
  padding: 8px 12px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  height: 36px;
}

.filter-clear-button:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.filter-apply-button {
  padding: 8px 18px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  height: 36px;
}

.filter-apply-button:hover {
  background-color: #0056b3;
}

.filter-apply-button:active {
  background-color: #004085;
}

@media (max-width: 600px) {
  .filter-modal {
    align-items: flex-end;
  }

  .filter-modal-content {
    margin-top: 0;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }

  .filter-modal-header {
    flex-shrink: 0;
    padding: 16px 20px;
  }

  .filter-modal-body {
    padding: 16px 20px;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-modal-footer {
    flex-shrink: 0;
    padding: 12px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }
}


/* Compact search bar overrides for search results page */
.search-bar-results .search-bar-compact {
  max-width: 100%;
  margin: 0 0 12px 0;
}

/* Search Controls Row */
.search-controls-row {
  display: flex;
  align-items: stretch;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: white;
}

.search-controls-row > :first-child {
  border-radius: 12px 0 0 12px;
}

.search-controls-row > :last-child {
  border-radius: 0 12px 12px 0;
}

.search-controls-row > .trip-summary-section {
  flex: 8;
  border: none;
  border-radius: 0;
  border-right: 1px solid #e0e0e0;
  margin: 0;
}

.search-control-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: white;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  padding: 0 8px;
  transition: background 0.15s ease;
  position: relative;
  height: auto;
}

.search-control-btn:hover {
  background: #f5f5f7;
}

.search-controls-row .filter-button {
  height: auto;
  width: 100%;
  border: none;
  border-radius: 0;
  border-left: 1px solid #e0e0e0;
  flex-direction: column;
  gap: 5px;
}

.search-control-btn .sort-button {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Results Container */
.results-container {
  flex: 1;
  min-width: 0;
}

/* Results Header */
.results-header {
  margin-bottom: 12px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.results-header h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #333;
  letter-spacing: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


/* No Hotels Section */
.no-hotels-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  padding: 20px;
}

.no-hotels-message {
  text-align: center;
  max-width: 600px;
}

.no-hotels-message h2 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

.no-hotels-message p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Hotel Cards - full width inherited from parent */
.hotel-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hotel-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}

.hotel-card-content {
  display: flex;
  gap: 0;
  align-items: stretch;
  height: 160px;
}

.hotel-right-content {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding: 10px 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.hotel-main-info {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hotel-separator {
  width: 1px;
  background-color: #e0e0e0;
  flex-shrink: 0;
  margin: 0;
}

.hotel-card:hover {
  transform: translateY(-1px);
}

/* Hotel Image Section */
.hotel-image-section {
  flex: 0 0 210px;
  max-width: 210px;
  height: 160px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.image-wrapper {
  position: relative;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}


.image-gallery {
  position: relative;
  background: #f5f5f5;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.image-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.image-container picture {
  width: 100%;
  height: 100%;
  display: flex;
  flex: 1;
}

.image-container img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  flex: 1;
  transition: transform 0.3s ease;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
}

.hotel-image-section:hover .gallery-prev,
.hotel-image-section:hover .gallery-next {
  opacity: 1;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  z-index: 15;
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hotel-image-section:hover .image-counter {
  opacity: 1;
}


.favorite-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-button:hover {
  background: #fff;
  color: #e74c3c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

/* Hotel name link */
.hotel-name-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hotel-name-link:hover .hotel-name {
  color: #007bff;
}

/* Hotel Info Section */
.hotel-main-info {
  gap: 4px !important;
}

.hotel-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.hotel-name:hover {
  color: #007bff;
  cursor: pointer;
}

.hotel-stars-row {
  display: block;
  width: 100%;
  margin-top: 2px;
}

.hotel-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1.5px;
  flex-shrink: 0;
  display: inline-block;
}

.hotel-stars-label {
  font-size: 11px;
  color: #888;
  letter-spacing: 0;
}

.hotel-address {
  font-size: 13px;
  color: #888;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.guest-rating {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #007bff;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.4;
}

.rating-count {
  font-size: 13px;
  color: #999;
}

.hotel-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-free-cancel {
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
}

/* Supplier price list */
.hotel-suppliers {
  flex: 0 0 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 8px 10px;
  border-left: 1px solid #e8e8e8;
}

.supplier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, background 0.12s;
}

.supplier-row:hover {
  border-color: #007bff;
  background: #f5f9ff;
  text-decoration: none;
  color: inherit;
}

.supplier-best {
  border-color: #007bff;
}

.supplier-name {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

.supplier-price {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

.supplier-price-label {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  margin-left: 1px;
}






/* Responsive */
@media (max-width: 1024px) {
  .search-results-container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 16px 12px;
    padding-top: 40px;
    gap: 16px;
  }
  
  .filters-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  
  .filters-bar > .filter-section:first-of-type,
  .filters-bar > .sort-section {
    flex: 0 0 calc(50% - 4px);
    min-width: 0;
    max-width: calc(50% - 4px);
  }
  
  .filter-bar-separator {
    display: none;
  }
  
  /* First filter section: Filter button */
  .filters-bar > .filter-section:first-of-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    order: 1;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  
  .filters-bar > .filter-section:first-of-type .filter-button {
    width: 100%;
  }
  
  /* Sort section: Sort button */
  .filters-bar > .sort-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    order: 2;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  
  .filters-bar > .sort-section .sort-button {
    width: 100%;
  }
  
  /* Second filter section: hidden on mobile (part of filter modal) */
  .filters-bar > .filter-section:last-of-type {
    display: none;
  }
  
  .filters-bar > .filter-bar-separator {
    display: none;
  }
  

  
  .hotel-card {
    flex-direction: column;
    max-width: 100%;
  }
  
  .hotel-card-content {
    flex-direction: column;
    max-width: 100%;
    height: auto;
  }
  
  .hotel-image-section {
    flex: 1;
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
  }
  
  .image-wrapper {
    border-radius: 8px 8px 0 0;
  }
  
  .hotel-right-content {
    flex-direction: column;
    padding: 16px;
    height: auto;
  }
  
  .hotel-main-info {
    order: 1;
    min-width: 0;
    width: 100%;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hotel-stars-row {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hotel-badges {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 4px;
  }

  .hotel-suppliers {
    order: 2;
    border-left: none;
    padding-left: 0;
  }
  
  .amenities-section {
    display: none;
  }
  
  .hotel-separator {
    display: none;
  }
  
  .hotel-price-box {
    order: 2;
    flex: none;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .select-hotel-button {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0 0;
  }
  
  .price-info {
    margin-top: 0;
    align-items: flex-start;
  }
  
  .price-details {
    align-items: center;
  }
}

@media (max-width: 767px) {
  .search-results-container {
    padding: 12px 8px;
    padding-top: 20px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }
  
  .trip-summary-section {
    padding: 12px 16px;
    margin-bottom: 12px;
  }

  /* Show mobile search trigger */
  .mobile-search-trigger {
    display: block;
    margin-bottom: 12px;
  }
  
  .search-results-search-container {
    display: flex;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 12px;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
  }
  
  .top-filters-section {
    margin-bottom: 12px;
  }
  
  .filters-bar {
    padding: 0;
    gap: 8px;
    background: transparent;
    min-height: auto;
  }
  
  .filters-bar > .filter-section:last-of-type {
    display: none;
  }

  .filter-button,
  .sort-button {
    padding: 8px 12px;
    font-size: 14px;
    height: 40px;
  }

  .filter-section {
    gap: 6px;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .results-header h1 {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .sort-section {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .sort-label {
    font-size: 14px;
  }
  
  .hotel-right-content {
    flex-direction: column;
    padding: 12px;
    height: auto;
  }
  
  .hotel-main-info {
    min-width: 0;
    width: 100%;
    align-items: center !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .hotel-name-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .hotel-name {
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
  }

  .hotel-stars-row {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hotel-stars {
    text-align: center;
  }

  .hotel-address {
    text-align: center;
    width: 100%;
  }

  .hotel-badges {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    margin-top: 4px;
    text-align: center;
  }

  .badge-free-cancel {
    text-align: center;
  }
  
  .hotel-cards {
    gap: 16px;
  }
  
  .hotel-card {
    border-radius: 8px;
  }
  
  .hotel-image-section {
    height: 220px;
    flex-basis: 220px;
  }
  
  .image-container img {
    aspect-ratio: 16 / 9;
    height: 100%;
    object-fit: cover;
  }
  
  .gallery-prev,
  .gallery-next {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  .gallery-prev {
    left: 8px;
  }
  
  .gallery-next {
    right: 8px;
  }
  
  .image-counter {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .favorite-button {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .hotel-name {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .hotel-main-info {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .search-results-container {
    padding: 8px;
    padding-top: 16px;
    width: 100%;
    max-width: 100%;
  }
  
  .filters-bar {
    padding: 0;
    gap: 8px;
  }

  .filter-button,
  .sort-button {
    padding: 8px 12px;
    font-size: 14px;
    height: 40px;
  }

  .filter-section {
    gap: 4px;
  }

  .results-header h1 {
    font-size: 18px;
  }
  
  .hotel-image-section {
    height: 200px;
    flex-basis: 200px;
  }
  
  .hotel-name {
    font-size: 16px;
  }
}


/* ========================================
   ADDITIONAL MOBILE IMPROVEMENTS
   ======================================== */

@media (max-width: 480px) {
  /* Tighter spacing on very small screens */
  .hotel-right-content {
    padding: 12px;
    gap: 12px;
    height: auto;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 8px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #007bff;
  background: #fff;
  border: 1px solid #007bff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.pagination-btn:hover {
  background: #007bff;
  color: #fff;
}

.pagination-disabled {
  color: #ccc;
  border-color: #e0e0e0;
  cursor: default;
  pointer-events: none;
}

.pagination-info {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

/* Related Searches SEO Section */
.related-searches {
  margin-top: 20px;
  padding: 12px 0 4px;
  border-top: 1px solid #e8e8e8;
}

.related-searches-group {
  margin-bottom: 12px;
}

.related-searches-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}

.related-searches-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.related-search-link {
  display: inline-block;
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
  padding: 6px 0;
}

.related-search-link:hover {
  text-decoration: underline;
}

/* Nearby Cities Section (after 10 hotels) */
.nearby-cities-section {
  min-height: 120px;
  margin: 16px 0;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-sizing: border-box;
}

.nearby-cities-section .related-searches-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.nearby-cities-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
  padding: 4px 0;
}

.nearby-city-skeleton-item {
  height: 20px;
  background: linear-gradient(90deg, #e9ecef 25%, #f1f3f5 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: nearby-city-skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  width: 75%;
}

@keyframes nearby-city-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.nearby-cities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
}

.nearby-city-item {
  min-width: 0;
}

.nearby-city-link {
  display: inline-block;
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nearby-city-link:hover {
  text-decoration: underline;
  color: #0056b3;
}

@media (max-width: 576px) {
  .nearby-cities-section {
    padding: 16px;
    margin: 24px 0;
    min-height: 220px;
  }

  .nearby-cities-list,
  .nearby-cities-skeleton {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
  }

  .nearby-city-link {
    font-size: 14px;
  }
}

