/* =========================================
SECTION: PROPERTY DETAILS PAGE
DESCRIPTION: Individual property view and enquiry
========================================= */

/* Property Details Page - Refined Premium UI (Cofynd-style) */

:root {
  --primary: #0091ff;
  --primary-light: rgba(0, 145, 255, 0.1);
  --secondary: #ff006e;
  --text-dark: #1a1a1a;
  --text-light: #64748b;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 24px -6px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------- */
/* 1. BREADCRUMBS — match listings page style exactly */
/* -------------------------------------------------- */
.breadcrumb-container {
  padding: 0.75rem 2rem;
  margin-top: 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.breadcrumbs {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem; /* 13px – matches listings-page breadcrumb at 14px */
  color: var(--text-light);
  max-width: 1400px;
  margin: 0 auto;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumbs a:hover {
  opacity: 0.75;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--text-light);
  opacity: 0.6;
}

/* -------------------------------------------------- */
/* 2. HERO GALLERY SECTION                            */
/* -------------------------------------------------- */
.property-hero-gallery {
  max-width: 1400px;
  margin: 1.25rem auto 0;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
}

.gallery-header {
  order: 1;
}

.gallery-grid {
  order: 2;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

/* Title */
.header-left h1 {
  font-size: 1.65rem; /* down from 2.2rem */
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

/* Meta row: rating, location, badge */
.prop-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-light);
  font-size: 0.8125rem; /* down from 0.95rem */
}

.prop-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Lucide icons inside meta */
.prop-meta svg,
.prop-meta i svg {
  width: 14px;
  height: 14px;
}

#propRating {
  color: #f59e0b;
  font-weight: 700;
}

.trusted-badge {
  color: #10b981;
  font-weight: 600;
  font-size: 0.78rem;
}

/* Starting price */
.starting-price {
  text-align: right;
}

.starting-price .label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.starting-price .value {
  font-size: 1.5rem; /* down from 2rem */
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}

/* -------------------------------------------------- */
/* 3. GALLERY GRID — 1 large left + right column      */
/* -------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
}

/* Left: main large image */
.gallery-main {
  position: relative;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-slider,
.slider-dots,
.slider-nav-btn {
  display: none;
}

/* Popular tag — compact */
.popular-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.popular-tag svg,
.popular-tag i svg {
  width: 13px;
  height: 13px;
}

/* Right column: grid layout — top image + bottom row */
.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100%;
  min-height: 0;
}

/* Top image: takes first grid row, fits cell exactly */
.side-img-top {
  height: 100%;
  width: 100%;
}

/* Bottom row: 2 images side by side inside a grid row, taking 50% */
.gallery-side-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 100%;
  min-height: 0;
}

.gallery-side-bottom .side-img {
  height: 100%;
  width: 100%;
}

/* Shared side image tile styles */
.side-img {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  height: 100%;
  width: 100%;
}

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

.side-img:hover img {
  transform: scale(1.04);
}

/* View All Photos button overlay */
.view-all-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--white);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.view-all-btn svg,
.view-all-btn i svg {
  width: 14px;
  height: 14px;
}

/* -------------------------------------------------- */
/* 4. LAYOUT CONTAINER                                */
/* -------------------------------------------------- */
.property-layout-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
}

/* -------------------------------------------------- */
/* 5. LEFT COLUMN — sections                          */
/* -------------------------------------------------- */
.details-section {
  margin-bottom: 2.25rem; /* down from 4rem */
}

.section-heading {
  font-size: 1.2rem; /* down from 1.6rem */
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem; /* down from 1.5rem */
  letter-spacing: -0.01em;
}

/* -------------------------------------------------- */
/* 6. SEATING CARDS — compact                         */
/* -------------------------------------------------- */
.seating-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem; /* down from 1.5rem */
}

.seating-card {
  display: grid;
  grid-template-columns: 140px 1fr 160px; /* img: 140px, price: 160px (down from 180px each) */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; /* down from 16px */
  overflow: hidden;
  align-items: stretch;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.seating-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.seating-img {
  height: 100%;
}

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

.seating-info {
  padding: 1rem 1.1rem; /* down from 1.5rem */
}

.seating-info h3 {
  font-size: 1rem; /* down from 1.2rem */
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.seating-desc {
  font-size: 0.8125rem; /* down from 0.9rem */
  color: var(--text-light);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.seating-meta {
  font-size: 0.78rem; /* down from 0.85rem */
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  gap: 0.75rem;
}

.seating-price {
  padding: 0.9rem 1rem; /* down from 1.5rem */
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.6rem; /* down from 1rem */
  border-left: 1px solid var(--border);
}

.price-val {
  font-size: 1.1rem; /* down from 1.3rem */
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.price-val small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
}

.price-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

/* -------------------------------------------------- */
/* 7. WHY BOOK CARD                                   */
/* -------------------------------------------------- */
.why-book-card {
  background: linear-gradient(135deg, #0091ff 0%, #0052cc 100%);
  color: white;
  padding: 1.75rem 2rem; /* down from 2.5rem */
  border-radius: 14px; /* down from 20px */
}

.why-book-card h3 {
  font-size: 1.1rem; /* down from 1.5rem */
  margin-bottom: 1rem;
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem; /* down from 1.2rem */
  margin-bottom: 1.25rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem; /* down from 0.95rem */
  font-weight: 500;
}

.benefit-item svg,
.benefit-item i svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* -------------------------------------------------- */
/* 8. DESCRIPTION                                     */
/* -------------------------------------------------- */
.description-text {
  font-size: 0.9rem; /* down from 1.05rem */
  line-height: 1.75;
  color: var(--text-light);
  max-height: 130px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.description-text.expanded {
  max-height: 1000px;
}

.see-more-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  cursor: pointer;
}

/* -------------------------------------------------- */
/* 9. TIMINGS — tighter                               */
/* -------------------------------------------------- */
.timings-row {
  display: flex;
  gap: 1rem; /* down from 2rem */
  flex-wrap: wrap;
}

.timing-item {
  display: flex;
  align-items: center;
  gap: 0.7rem; /* down from 1rem */
  background: var(--bg-light);
  padding: 0.7rem 1.1rem; /* down from 1rem 1.5rem */
  border-radius: 10px;
  min-width: 175px;
}

.timing-item .icon-box {
  width: 34px; /* down from 40px */
  height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.timing-item .icon-box svg,
.timing-item .icon-box i svg {
  width: 15px;
  height: 15px;
}

.timing-info .day {
  display: block;
  font-size: 0.75rem; /* down from 0.85rem */
  color: var(--text-light);
  font-weight: 600;
}

.timing-info .hours {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-dark);
}

/* -------------------------------------------------- */
/* 10. AMENITIES — tighter grid                       */
/* -------------------------------------------------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem; /* down from 1.2rem */
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.8125rem; /* explicit smaller size */
  color: var(--text-dark);
}

.amenity-item i {
  color: #10b981;
}

.amenity-item svg,
.amenity-item i svg {
  width: 15px;
  height: 15px;
}

/* -------------------------------------------------- */
/* 11. MAP                                            */
/* -------------------------------------------------- */
.map-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem; /* down from 1.5rem */
}

.map-address {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  height: 280px; /* slightly less */
}

/* -------------------------------------------------- */
/* 12. SIDEBAR STICKY FORM                            */
/* -------------------------------------------------- */
.property-sidebar-column {
  position: relative;
}

.sticky-form-card {
  position: sticky;
  top: 140px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px; /* down from 24px */
  padding: 1.4rem 1.5rem; /* down from 2rem */
  box-shadow: var(--shadow-lg);
  z-index: 10;
  transition: transform 0.1s linear;
}

.form-header {
  margin-bottom: 1.1rem; /* down from 2rem */
}

.form-header h3 {
  font-size: 1.05rem; /* down from 1.4rem */
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.form-header p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.form-input-group {
  margin-bottom: 0.75rem; /* down from 1.2rem */
}

.sidebar-enquiry-form input,
.sidebar-enquiry-form select {
  width: 100%;
  padding: 0.65rem 0.9rem; /* down from 0.9rem 1.2rem */
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem; /* down from 0.95rem */
  transition: border-color 0.3s ease;
  background: var(--white);
  color: var(--text-dark);
}

.sidebar-enquiry-form input:focus,
.sidebar-enquiry-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.phone-input-wrapper {
  display: flex;
  gap: 8px;
}

.country-code {
  padding: 0.65rem 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem; /* down from 1.5rem */
}

.btn-enquire-large {
  width: 100%;
  padding: 0.8rem; /* down from 1.1rem */
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.9rem; /* down from 1rem */
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-enquire-large:hover {
  background: #007ae0;
}

.expert-contact {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.expert-contact img {
  width: 40px; /* down from 50px */
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.expert-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}

.expert-info a {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dark);
  text-decoration: none;
}

.trusted-companies-card {
  margin-top: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1rem 1.1rem; /* down from 1.5rem */
}

.trusted-companies-card .label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.company-logos {
  display: flex;
  justify-content: space-around;
  font-weight: 800;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* -------------------------------------------------- */
/* 13. COMMON BUTTONS                                 */
/* -------------------------------------------------- */
.btn-enquire-small {
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-enquire-small:hover {
  background: var(--primary);
  color: white;
}

.why-book-card .btn-enquire-small {
  background: var(--white);
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
}

/* -------------------------------------------------- */
/* 14. ERROR STATE                                    */
/* -------------------------------------------------- */
.property-error-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-content i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.error-content h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.error-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------- */
/* 15. RESPONSIVE                                     */
/* -------------------------------------------------- */
@media (max-width: 1200px) {
  .property-layout-container {
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .property-layout-container {
    grid-template-columns: 1fr;
  }

  .property-sidebar-column {
    order: -1;
  }

  .sticky-form-card {
    position: relative;
    top: 0;
    margin-bottom: 1.5rem;
  }

  .gallery-grid {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .sticky-form-card {
    padding: 10px 10px !important;
    border-radius: 2px;
  }
  /* 1. Hide breadcrumb on mobile */
  .breadcrumb-container {
    display: none !important;
  }

  .property-hero-gallery {
    padding: 0;
    margin-top: 0;
  }

  .gallery-header {
    padding: 1.25rem 1.25rem 0.5rem;
  }

  /* Mobile Gallery Slider */
  .gallery-main {
    height: auto;
    background: #000;
  }

  .desktop-main-img {
    display: none !important;
  }

  .mobile-slider {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 250px;
  }

  .mobile-slider::-webkit-scrollbar {
    display: none;
  }

  .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Slider Dots */
  .slider-dots {
    display: flex !important;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    gap: 6px;
    z-index: 5;
  }

  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
  }

  .dot.active {
    background: #fff;
    width: 16px;
    border-radius: 10px;
  }

  /* Slider Nav Buttons */
  .slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
  }

  .slider-nav-btn svg {
    width: 20px;
    height: 20px;
  }

  .slider-nav-btn.prev {
    left: 10px;
  }

  .slider-nav-btn.next {
    right: 10px;
  }

  .gallery-grid {
    display: block;
    height: auto;
    border-radius: 0;
    margin: 0;
    padding: 1.25rem 1.25rem 0.5rem;
  }

  .gallery-side {
    display: none !important;
  }

  .property-layout-container {
    padding: 0 1.25rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .header-left h1 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }

  .prop-meta {
    flex-wrap: wrap;
    gap: 0.6rem 0.85rem;
    font-size: 0.78rem;
  }

  .prop-meta span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }

  .header-right {
    display: none !important;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 0.75rem;
    margin-bottom: 0px !important;
  }

  .starting-price .value {
    font-size: 1.3rem;
  }

  .seating-card {
    grid-template-columns: 100px 1fr;
  }

  .seating-price {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .details-section {
    margin-bottom: 1.75rem;
  }

  .property-layout-container {
    padding: 0 1.25rem;
    margin-top: 1rem;
  }

  /* Fix footer overlap */
  .footer {
    padding-bottom: 100px !important;
  }

  .amenities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
  }

  .amenity-item {
    font-size: 0.78rem;
  }
}

/* Mobile Bottom Bar (Sticky) */
.mobile-bottom-bar {
  display: none; /* Hide by default on desktop/tablet */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
}

.bottom-price .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.bottom-price .value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.bottom-price .duration {
  font-size: 0.75rem;
  color: var(--text-light);
}

.bottom-enquire-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
}

/* END: PROPERTY DETAILS PAGE */
