/* Base Styles */
body {
  background-color: #E5E3DC;
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
}

.listing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.logo img {
      max-height: 40px;
      max-width: 150px;
      height: auto;
      vertical-align: middle;
}
/* Section Styling */
.listing-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Gallery + booking widget row */
.gallery-booking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 20px;
  align-items: start;
  margin-bottom: 25px;
}

/* Gallery Section */
.gallery-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.main-image {
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  background-color: #f8f9fa;
}

.grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
  background-color: #f8f9fa;
}

.grid-thumb:hover {
  transform: scale(1.03);
}

.grid-thumb.active {
  box-shadow: 0 0 0 3px #FF385C;
}

.see-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.see-more-btn {
  width: 90%;
  height: 90%;
  background: rgba(0,0,0,0.05);
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.see-more-btn:hover {
  background: rgba(0,0,0,0.1);
  border-color: #999;
}

.see-more-btn span {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.photo-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #FF385C;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Content Sections */
h1, h2 {
  color: #222;
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.property-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #666;
}

.price-section {
  margin-top: 15px;
}

.price-from {
  font-size: 0.95rem;
  color: #717171;
  margin-right: 4px;
}

.price {
  font-size: 1.5rem;
  font-weight: 600;
}

ul.amenities,
ul.house-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px 24px;
}

.amenities li,
.house-rules li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
  color: #222;
  font-size: 0.98rem;
  line-height: 1.4;
}

.amenities li i,
.house-rules li i {
  width: 24px;
  flex-shrink: 0;
  text-align: center;
  font-size: 1.15rem;
  color: #484848;
}

.review-card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Map Section */
#property-map {
  height: 400px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin: 15px 0;
  background: #f8f9fa;
}

.open-in-maps {
  display: inline-block;
  padding: 8px 16px;
  background: #4285F4;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.3s;
}

.open-in-maps:hover {
  background: #3367d6;
}

/* Host Section */
.host-description {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.host-info {
  flex: 1;
}

.host-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.superhost-badge {
  background: #FF385C;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  margin-left: 10px;
}

/* Modal Styles */
.photo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: white;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #333;
  font-size: 30px;
  cursor: pointer;
  background: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-nav {
  background: rgba(0,0,0,0.1);
  border: none;
  color: #333;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-nav:hover {
  background: rgba(0,0,0,0.2);
}

.modal-main-image-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.modal-main-image {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f8f9fa;
}

.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  margin-top: 20px;
}

.modal-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f8f9fa;
}
/* Collapsible amenities / house rules */
.collapsible-list .hidden-item {
  display: none;
}

.collapsible-list.expanded .hidden-item {
  display: flex;
}

.toggle-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid #222;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.toggle-list-btn:hover {
  background: #f2f2f2;
}

.toggle-list-btn:active {
  transform: scale(0.98);
}

.toggle-list-btn i {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.toggle-list-btn.expanded i {
  transform: rotate(180deg);
}

.location-description {
  margin-top: 20px;
}

/* Collapsible description */
.property-description.collapsed {
  max-height: 220px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

/* Booking widget (compact sidebar next to the gallery) */
.booking-widget {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: sticky;
  top: 16px;
}

.booking-widget h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.availability-calendar {
  margin-bottom: 14px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-month-label {
  font-weight: 600;
  font-size: 0.88rem;
}

.calendar-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #222;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s;
}

.calendar-nav-btn:hover:not(:disabled) {
  background: #f2f2f2;
}

.calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 4px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  color: #222;
}

.calendar-day.other-month {
  visibility: hidden;
}

.calendar-day.available {
  background: #f2f7f2;
  cursor: pointer;
  transition: background 0.15s;
}

.calendar-day.available:hover {
  background: #dcefe0;
}

.calendar-day.past {
  color: #ccc;
  cursor: not-allowed;
}

.calendar-day.booked {
  background: #fdecea;
  color: #c98d89;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Booked day that can still be picked as check-out (another stay starts that day) */
.calendar-day.booked.checkout-only {
  text-decoration: none;
  color: #a12a24;
  cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #FF385C;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 1.5px #222;
}

.calendar-day.in-range {
  background: #ffe1e6;
  border-radius: 0;
}

.calendar-day.selected {
  background: #FF385C;
  color: #fff;
  font-weight: 600;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 0.68rem;
  color: #555;
}

.calendar-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 4px;
}

.calendar-dot.available { background: #f2f7f2; box-shadow: inset 0 0 0 1px #cfe3d1; }
.calendar-dot.booked { background: #fdecea; box-shadow: inset 0 0 0 1px #f3c1bd; }
.calendar-dot.selected { background: #FF385C; }

/* Booking request form */
.selected-dates-summary {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.booking-details-toggle summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #FF385C;
  list-style: none;
  padding: 4px 0;
}

.booking-details-toggle summary::-webkit-details-marker {
  display: none;
}

.booking-details-toggle[open] summary {
  margin-bottom: 10px;
}

.booking-widget .form-group {
  margin-right: 0;
  margin-bottom: 0.75rem;
}

.booking-widget .form-group label {
  font-size: 0.82rem;
}

.booking-widget .form-group input,
.booking-widget .form-group textarea {
  padding: 0.5rem;
  font-size: 0.88rem;
}

.booking-submit-btn {
  width: 100%;
  padding: 11px 16px;
  background: #FF385C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.booking-submit-btn:hover:not(:disabled) {
  background: #E61E4D;
}

.booking-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-alert {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.form-alert-success {
  background: #e6f4ea;
  color: #1e6b34;
  border: 1px solid #b6e0c3;
}

.form-alert-error {
  background: #fdecea;
  color: #a12a24;
  border: 1px solid #f3c1bd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-image {
    height: 300px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-booking-row {
    grid-template-columns: 1fr;
  }

  .booking-widget {
    position: static;
  }

  .host-description {
    flex-direction: column;
  }
  
  .amenities, .house-rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-image {
    height: 250px;
  }
  
  .listing-section, .gallery-section {
    padding: 15px;
  }
}