/* --- Inline styles for demo, use your styles.css in production --- */
.property-gallery-section {
  max-width: 1290px;
  margin: 0 auto;
  padding: 3rem 1rem 1.5rem 1rem;
}

.property-gallery {
  width: 100%;
  position: relative;
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
  border-radius: 18px;
  overflow: hidden;
}

.property-gallery-grid img,
.property-gallery-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  background: #eee;
}

.property-gallery-grid .main-img {
  grid-row: 1 / span 2;
  grid-column: 1 / 2;
}

.property-gallery-grid .thumb-img {
  grid-column: 2 / 3;
}

.property-gallery-more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
}

.property-gallery-more:hover {
  background: #ff4037;
}

.property-gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.2s;
}

.property-gallery-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
}

.property-gallery-modal-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  flex: 1;
  gap: 12px;
}

.property-gallery-modal-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

/* .property-gallery-modal-inner {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 90vw;
            max-height: 90vh;
        } */

.property-gallery-modal-content {
  flex: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.property-gallery-modal-main img,
.property-gallery-modal-main video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
}

.property-gallery-modal-arrow {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 0.8rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s;
}

.property-gallery-modal-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.property-gallery-modal-count {
  position: absolute;
  top: 18px;
  left: 40px;
  color: #fff;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 14px;
  border-radius: 16px;
  z-index: 10003;
  font-weight: 500;
}

.property-gallery-modal-caption {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 2px 8px #000;
  min-height: 1.5em;
}

.property-gallery-modal-thumbs-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: inline-flex;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.property-gallery-modal-thumbs {
  display: inline-flex;
  gap: 8px;
  margin: 1.2rem 0 0.2rem 0;
  justify-content: center;
  /* flex-wrap: wrap; */
  margin-top: 0.6rem;
}

.property-gallery-modal-thumbs img,
.property-gallery-modal-thumbs video {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  background: #222;
  transition: border 0.2s, opacity 0.2s;
}

.property-gallery-modal-thumbs .active {
  border: 2px solid #ff908c;
  opacity: 1;
}

.property-section .read-more-link {
  color: #ff4037;
  cursor: pointer;
  font-weight: 500;
  margin-left: 0.5em;
  text-decoration: underline;
}

.property-section .read-more-link:hover {
  color: #ff908c;
}

.property-cancellation {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.5rem 1.5rem 1.2rem 1.5rem;
  margin-top: 1.5rem;
}

.property-cancellation h3 {
  margin-bottom: 0.7rem;
}

.rates-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 24px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rate-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

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

.rate-label {
  font-weight: 500;
  color: #666;
}

.rate-value {
  font-weight: 600;
  color: #111;
}

.per-night {
  font-size: 0.85rem;
  font-weight: normal;
  color: #888;
  margin-left: 2px;
}

.property-rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.property-rates-table td,
.property-rates-table th {
  padding: 0.5rem 0.7rem 0.5rem 0;
  border: none;
  font-size: 1.08rem;
}

.property-rates-table th {
  color: #888;
  font-weight: 400;
  text-align: left;
  width: 160px;
}

.property-rates-table td {
  font-weight: 600;
  color: #222;
}

.property-rates-seasonal {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.property-rates-seasonal th,
.property-rates-seasonal td {
  padding: 0.4rem 0.7rem 0.4rem 0;
  font-size: 1.02rem;
}

.property-rates-seasonal th {
  color: #888;
  font-weight: 400;
  text-align: left;
  width: 160px;
}

.property-rates-seasonal td {
  font-weight: 500;
  color: #222;
}

@media (max-width: 767px) {
  .property-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 140px;
  }

  .property-gallery-modal-content img,
  .property-gallery-modal-content video {
    max-width: 98vw;
    max-height: 60vh;
  }
}

@media (max-width: 600px) {
  .property-section {
    border-radius: 10px;
  }
}

.property-main {
  display: flex;
  gap: 2.5rem;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 1rem 2rem 1rem;
}

.property-main-left {
  flex: 0 0 70%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.property-main-right {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

@media (max-width: 991px) {
  .property-main {
    flex-direction: column;
    gap: 2rem;
    padding: 0 0.5rem 2rem 0.5rem;
  }

  .property-main-left,
  .property-main-right {
    width: 100%;
  }
}

/* Booking form sticky on desktop only */
.sticky-booking {
  position: sticky;
  top: 90px;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .sticky-booking {
    display: none;
  }
}

/* Hide mobile booking on desktop/tablet */
.booking-mobile-btn,
.booking-mobile-modal {
  display: none !important;
}

@media (max-width: 991px) {
  .booking-mobile-btn {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    z-index: 100;
    background: linear-gradient(90deg, #ff4037 0%, #ff908c 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    padding: 1.1rem 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    letter-spacing: 0.5px;
  }

  .booking-mobile-modal {
    display: none !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    animation: fadeInUp 0.4s;
  }

  .booking-mobile-modal.show {
    display: block !important;
  }

  .booking-mobile-modal-close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 2rem;
    color: #222;
    cursor: pointer;
  }
}

/* Section styles */
.property-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.5rem 1.5rem 1.2rem 1.5rem;
}

.property-section:not(:last-child) {
  margin-bottom: 1.5rem;
}

.property-section h3 {
  margin-bottom: 0.7rem;
}

.property-amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  /* flex-wrap: wrap; */
  gap: 0.7rem 1.5rem;
  font-size: 1rem;
}

.property-amenities-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.property-amenities-list li .apartment-svg-icon {
  color: #41bacb;
  height: 30px;
  width: 30px;
  margin-right: 5px;
}

.property-map {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.5rem;
}

@media (max-width: 991px) {
  .property-map {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .property-map {
    height: 160px;
  }
}

@media (max-width: 991px) {
  .property-main-left,
  .property-main-right {
    gap: 1.2rem;
  }
}

@media (max-width: 767px) {
  .property-section {
    padding: 1rem 0.7rem;
  }
}

.property-heading {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.property-details-row {
  display: flex;
  gap: 2.5rem;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.property-details-row span {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.property-details-row .apartment-svg-icon {
  font-size: 1.2em;
  color: #41bacb;
}

#quote {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  background: #f9f9f9;
}
#quote_mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1rem;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  background: #f9f9f9;
}
.accordion {
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-header {
  background: #cbfaff70;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header:hover {
  background: #cbfaff;
}
.accordion-body {
  display: none;
  padding: 12px 16px;
  background: #fff;
  font-size: 0.95rem;
}
.accordion.open .accordion-body {
  display: block;
}
.accordion.open .accordion-header::after {
  content: "▲";
}
.accordion-header::after {
  content: "▼";
  font-size: 0.8rem;
}

/* grid inside accordion */
.rate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
@media (min-width: 768px) {
  .rate-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rate-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.form-floating-label {
  position: relative;
  margin-bottom: 0.5rem;
  flex: 1;
}
.form-floating-label input,
.form-floating-label select {
  width: 100%;
  padding: 1.1rem 0.75rem 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}
.form-floating-label label {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  color: #888;
  font-size: 1rem;
  pointer-events: none;
  background: transparent;
  transition: all 0.18s;
  padding: 0 0.2em;
}
.form-floating-label input:focus,
.form-floating-label select:focus {
  border-color: #86b7fe;
  background: #fff;
}
.form-floating-label input:not(:placeholder-shown):not([type="date"]),
.form-floating-label input:focus,
.form-floating-label select:focus,
.form-floating-label select:not([value=""]) {
  background: #fff;
}
.form-floating-label input:focus + label,
.form-floating-label input:not(:placeholder-shown) + label,
.form-floating-label select:focus + label,
.form-floating-label select:not([value=""]) + label {
  top: 0.3rem;
  left: 0.65rem;
  font-size: 0.85rem;
  color: #888;
  background: #fff;
}
