/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #222;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-bar-mini {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 40px;
  padding: 7px 8px 7px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  transition: box-shadow .2s;
  font-size: 14px;
}

.search-bar-mini:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
}

.search-text {
  font-weight: 600;
  padding: 0 16px;
  white-space: nowrap;
}

.search-text.muted {
  font-weight: 400;
  color: #717171;
}

.search-divider {
  width: 1px;
  height: 24px;
  background: #ddd;
}

.search-icon {
  width: 32px;
  height: 32px;
  background: #FF385C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.search-icon svg {
  width: 12px;
  height: 12px;
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn {
  padding: 10px 12px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.nav-btn:hover {
  background: #f7f7f7;
}

.globe-icon {
  width: 16px;
  height: 16px;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: 22px;
  padding: 5px 5px 5px 12px;
  margin-left: 8px;
}

.profile-btn:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
}

.hamburger-icon {
  width: 16px;
  height: 16px;
  color: #222;
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  color: #717171;
}

.avatar-circle svg {
  width: 30px;
  height: 30px;
}

/* ========== LISTING PAGE ========== */
.listing-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.listing-header {
  margin-bottom: 24px;
}

.listing-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

/* ========== PHOTO GRID ========== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  cursor: pointer;
  position: relative;
}

.photo-grid .grid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: brightness .2s;
}

.photo-grid .grid-photo:hover {
  filter: brightness(.92);
}

.photo-grid .grid-photo:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.show-all-photos-btn {
  position: relative;
  float: right;
  margin-top: -56px;
  margin-right: 16px;
  z-index: 2;
  background: #fff;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.show-all-photos-btn svg {
  width: 16px;
  height: 16px;
}

.show-all-photos-btn:hover {
  background: #f7f7f7;
}

/* ========== LISTING BODY ========== */
.listing-body {
  display: flex;
  gap: 80px;
  margin-top: 48px;
}

.listing-main {
  flex: 1;
  min-width: 0;
}

.listing-sidebar {
  width: 372px;
  flex-shrink: 0;
}

.section-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 32px 0;
}

/* ========== HOST SECTION ========== */
.host-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.host-info h2 {
  font-size: 22px;
  font-weight: 600;
}

.property-details {
  color: #717171;
  font-size: 16px;
}

.host-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* ========== HIGHLIGHTS ========== */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight-item {
  display: flex;
  gap: 16px;
}

.highlight-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
}

.highlight-text {
  display: flex;
  flex-direction: column;
}

.highlight-text strong {
  font-size: 16px;
}

.highlight-text span {
  font-size: 14px;
  color: #717171;
}

/* ========== DESCRIPTION ========== */
.description-section p {
  font-size: 16px;
  line-height: 1.667;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-more-btn {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 10px 20px;
  transition: background .15s;
}

.show-more-btn:hover {
  background: #ebebeb;
}

/* ========== AMENITIES ========== */
.amenities-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ebebeb;
}

.amenity-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.show-amenities-btn {
  margin-top: 24px;
  padding: 13px 23px;
  border: 1px solid #222;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

.show-amenities-btn:hover {
  background: #f7f7f7;
}

/* ========== REVIEWS ========== */
.reviews-section {
  margin-bottom: 0;
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.star-icon {
  width: 16px;
  height: 16px;
}

.reviews-score {
  font-size: 22px;
  font-weight: 600;
}

.reviews-separator {
  font-size: 22px;
  color: #717171;
}

.reviews-count {
  font-size: 22px;
  font-weight: 600;
}

.reviews-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 64px;
  margin-bottom: 32px;
}

.review-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}

.rating-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-bar {
  width: 120px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.rating-bar-fill {
  height: 100%;
  background: #222;
  border-radius: 2px;
}

.rating-value {
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

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

.review-author-info strong {
  font-size: 16px;
  display: block;
}

.review-author-info span {
  font-size: 14px;
  color: #717171;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.review-stars svg {
  width: 12px;
  height: 12px;
}

.review-text {
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-reviews-btn {
  margin-top: 32px;
  padding: 13px 23px;
  border: 1px solid #222;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

.show-reviews-btn:hover {
  background: #f7f7f7;
}

/* ========== MAP SECTION ========== */
.map-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 480px;
}

.map-location {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
}

.map-description {
  font-size: 16px;
  color: #717171;
  margin-top: 8px;
  line-height: 1.5;
}

/* ========== MEET YOUR HOST ========== */
.meet-host-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.meet-host-card {
  display: flex;
  background: #f7f7f7;
  border-radius: 16px;
  padding: 32px 40px;
  align-items: center;
  gap: 40px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.meet-host-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.meet-host-avatar-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.meet-host-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.superhost-badge-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: #FF385C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f7f7f7;
}

.superhost-badge-icon svg {
  width: 14px;
  height: 14px;
}

.meet-host-name {
  font-size: 22px;
  font-weight: 700;
}

.meet-host-label {
  font-size: 14px;
  color: #717171;
}

.meet-host-card-right {
  flex: 1;
}

.meet-host-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.meet-host-stat {
  display: flex;
  flex-direction: column;
}

.meet-host-stat strong {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-star {
  width: 14px;
  height: 14px;
}

.meet-host-stat span {
  font-size: 12px;
  color: #717171;
}

.meet-host-stat-divider {
  width: 1px;
  height: 40px;
  background: #ddd;
}

.meet-host-details {
  margin-top: 24px;
}

.meet-host-details p {
  font-size: 16px;
  line-height: 1.667;
}

.contact-host-btn {
  margin-top: 24px;
  padding: 13px 23px;
  border: 1px solid #222;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

.contact-host-btn:hover {
  background: #f7f7f7;
}

/* ========== BOOKING CARD ========== */
.booking-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  position: sticky;
  top: 104px;
}

.booking-price {
  margin-bottom: 24px;
}

.price-amount {
  font-size: 22px;
  font-weight: 600;
}

.price-night {
  font-size: 16px;
}

.booking-form {
  border: 1px solid #b0b0b0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.date-inputs {
  display: flex;
  border-bottom: 1px solid #b0b0b0;
}

.date-input {
  flex: 1;
  padding: 10px 12px;
  cursor: pointer;
}

.date-input:first-child {
  border-right: 1px solid #b0b0b0;
}

.date-input label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.date-input span {
  font-size: 14px;
}

.guest-input {
  padding: 10px 12px;
  cursor: pointer;
}

.guest-input label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.guest-input span {
  font-size: 14px;
}

.reserve-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(to right, #E61E4D, #E31C5F, #D70466);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
}

.reserve-btn:hover {
  opacity: .9;
}

.no-charge-text {
  text-align: center;
  font-size: 14px;
  color: #717171;
  margin-top: 8px;
}

.price-breakdown {
  margin-top: 24px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  padding: 8px 0;
}

.price-row span:first-child {
  text-decoration: underline;
  color: #717171;
}

.price-row.total {
  font-weight: 600;
}

.price-row.total span:first-child {
  text-decoration: none;
  color: #222;
}

.price-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 16px 0;
}

/* ========== ALL PHOTOS OVERLAY ========== */
.all-photos-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.all-photos-overlay.active {
  display: flex;
}

.all-photos-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid #ebebeb;
}

.all-photos-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.all-photos-back-btn:hover {
  background: #f7f7f7;
}

.all-photos-back-btn svg {
  width: 16px;
  height: 16px;
}

.all-photos-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.all-photos-row-single {
  width: 100%;
}

.all-photos-row-single img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: opacity .15s;
}

.all-photos-row-single img:hover {
  opacity: .9;
}

.all-photos-row-pair {
  display: flex;
  gap: 8px;
}

.all-photos-row-pair img {
  flex: 1;
  width: 50%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity .15s;
}

.all-photos-row-pair img:hover {
  opacity: .9;
}

/* ========== GALLERY (CAROUSEL) OVERLAY ========== */
.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  display: none;
  flex-direction: column;
}

.gallery-overlay.active {
  display: flex;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: #fff;
}

.gallery-close-btn {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}

.gallery-close-btn:hover {
  background: rgba(255,255,255,.15);
}

.gallery-close-btn svg {
  width: 14px;
  height: 14px;
}

.gallery-counter {
  font-size: 16px;
  font-weight: 500;
}

.gallery-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 80px;
}

.gallery-image-container {
  width: 100%;
  max-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform .15s;
}

.gallery-nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav svg {
  width: 16px;
  height: 16px;
}

.gallery-prev {
  left: 24px;
}

.gallery-next {
  right: 24px;
}

/* ========== GENERIC MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 568px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-dialog-large {
  max-width: 780px;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid #ebebeb;
  border-radius: 12px 12px 0 0;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  transition: background .15s;
}

.modal-close-btn:hover {
  background: #f7f7f7;
}

.modal-close-btn svg {
  width: 14px;
  height: 14px;
}

.modal-body {
  padding: 24px;
}

.modal-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-body p {
  font-size: 16px;
  line-height: 1.667;
}

/* ========== AMENITIES MODAL ========== */
.amenities-modal-list {
  display: flex;
  flex-direction: column;
}

.amenities-modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #ebebeb;
  font-size: 16px;
}

.amenities-modal-item:last-child {
  border-bottom: none;
}

.amenities-modal-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ========== REVIEWS MODAL ========== */
.reviews-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.reviews-modal-score {
  font-size: 22px;
  font-weight: 600;
}

.reviews-modal-list {
  display: flex;
  flex-direction: column;
}

.reviews-modal-list .review-card {
  padding: 24px 0;
  border-bottom: 1px solid #ebebeb;
}

.reviews-modal-list .review-card:last-child {
  border-bottom: none;
}

.reviews-modal-list .review-text {
  display: block;
  -webkit-line-clamp: unset;
}

/* ========== FOOTER ========== */
.footer {
  background: #f7f7f7;
  border-top: 1px solid #ddd;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-section a {
  display: block;
  font-size: 14px;
  color: #717171;
  padding: 4px 0;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #717171;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #717171;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar-inner {
    height: 64px;
    padding: 0 16px;
  }

  .nav-center,
  .nav-btn,
  .globe-btn {
    display: none;
  }

  .listing-page {
    padding: 16px 16px 0;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
  }

  .photo-grid .grid-photo:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-grid .grid-photo:nth-child(n+3) {
    display: none;
  }

  .show-all-photos-btn {
    margin-top: -48px;
  }

  .listing-body {
    flex-direction: column;
    gap: 32px;
  }

  .listing-sidebar {
    width: 100%;
  }

  .reviews-grid,
  .reviews-categories,
  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .gallery-body {
    padding: 0 16px;
  }

  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }

  .all-photos-row-pair {
    flex-direction: column;
  }

  .all-photos-row-pair img {
    width: 100%;
  }

  .modal-dialog {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-header {
    border-radius: 0;
  }

  .map-container iframe {
    height: 300px;
  }

  .meet-host-card {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }

  .meet-host-stats {
    gap: 16px;
  }
}
