@charset "UTF-8";
/* CSS Document */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --sand:    #F5F0E8;
  --sand-dk: #E8E0D0;
  --ink:     #1C1915;
  --ink-md:  #4A4540;
  --ink-lt:  #8A8278;
  --gold:    #9c7953;
  --gold-lt: #c9a882;
  --white:   #FDFCFA;
  --teal:    #5a9e9f;
  --teal-lt: #d6ecec;
  --radius:  4px;

  /* semantic aliases */
  --bg:        var(--sand);
  --surface:   var(--white);
  --border:    var(--sand-dk);
  --accent:    var(--gold);
  --accent-lt: var(--gold-lt);
  --nav-bg:    var(--white);
}

@media(prefers-color-scheme: dark)
{
  :root {
    --bg:        #030126;
    --surface:   #0b0840;
    --border:    #1e1a5a;
    --ink:       #f0eadc;
    --ink-md:    #c8bfb0;
    --ink-lt:    #7a7490;
    --accent:    #e9c861;
    --accent-lt: #f5de96;
    --teal:      #5a9e9f;
    --teal-lt:   #0f2a3a;
    --white:     #0b0840;
    --nav-bg:    #06042e;
    --sand-dk:   #1e1a5a;
  }
}

/* ── BASE ───────────────────────────────────────────────────── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* ── LINKS ── */
a {
  color: var(--teal);
}

a:hover {
  color: var(--teal);
  opacity: 0.8;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.site-navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.site-navbar .navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-navbar .navbar-brand img {
  height: 100px;
  width: auto;
}

.site-navbar .nav-link {
  font-size: 13.5px;
  color: var(--ink-md);
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem !important;
  transition: color 0.15s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: var(--accent);
}

.site-navbar .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(3,1,38,0.15);
  background: var(--nav-bg);
  min-width: 210px;
  padding: 0.4rem 0;
}

.site-navbar .dropdown-item {
  font-size: 13px;
  color: var(--ink-md);
  padding: 0.45rem 1.1rem;
  transition: background 0.12s, color 0.12s;
}

.site-navbar .dropdown-item:hover {
  background: var(--bg);
  color: var(--ink);
}

.site-navbar .navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 9px;
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234A4540' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── SITE HERO (index.php) ──────────────────────────────────── */
.site-hero {
  width: 100%;
  max-height: 550px;
  overflow: hidden;
  position: relative;
  display: block;
}

.site-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 21, 0.15);
  pointer-events: none;
}

.site-hero img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.site-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.site-hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #ffffff;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.site-hero-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ── PAGE HERO (history.php, etc.) ─────────────────────────── */
.page-hero {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 21, 0.30);
  pointer-events: none;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.page-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.page-hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: #ffffff;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.page-hero-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ── PHOTO GALLERY ──────────────────────────────────────────── */
.property-gallery {
  max-height: 516px;
  background: var(--bg);
  padding: 0.25rem;
}

.gallery-grid {
  display: flex;
  gap: 0.25rem;
  height: 500px;
}

.gallery-main-wrap {
  position: relative;
  flex: 2;
  overflow: hidden;
}

.gallery-main {
  display: block;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

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

.gallery-main:hover img { transform: scale(1.02); }

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.gallery-thumb {
  flex: 1;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

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

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

.gallery-all-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(254,250,241,0.88);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
  z-index: 2;
}

.gallery-all-btn:hover { background: var(--white); }

.gallery-hidden { display: none; }

/* ── PROPERTY HEADER ────────────────────────────────────────── */
.property-header { padding: 2rem 0 0.5rem; }

.property-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.property-meta {
  font-size: 13.5px;
  color: var(--ink-lt);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
}

.property-meta .dot { opacity: 0.5; }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.prop-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lt);
  margin-bottom: 0.5rem;
}

.prop-breadcrumb a { color: inherit; text-decoration: none; }
.prop-breadcrumb a:hover { color: var(--accent); }
.prop-breadcrumb span { margin: 0 5px; opacity: 0.5; }

/* ── SECTIONS ───────────────────────────────────────────────── */
.section { margin-bottom: 2.2rem; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.1rem;
}

.body-text {
  color: var(--ink-md);
  line-height: 1.75;
  font-size: 14.5px;
}

.body-text p + p { margin-top: 0.6rem; }

/* ── BOOKING SIDEBAR ────────────────────────────────────────── */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.6rem;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0.2rem;
}

.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ink);
}

.price-unit { font-size: 14px; color: var(--ink-lt); }

/* ── BOOK BUTTON ────────────────────────────────────────────── */
.book-btn {
  width: 100%;
  padding: 13px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.75rem;
}

.book-btn:hover { background: var(--gold); }

.book-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-lt);
  margin-bottom: 1.2rem;
}

/* ── PRICE BREAKDOWN ────────────────────────────────────────── */
.price-breakdown {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}

.pb-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-md);
  margin-bottom: 7px;
}

.pb-row.total {
  border-top: 1px solid var(--border);
  padding-top: 9px;
  margin-top: 4px;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 0;
}

/* ── CAROUSEL ───────────────────────────────────────────────── */
.carousel-control-prev,
.carousel-control-next {
  width: 32px;
  height: 32px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  opacity: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 16px;
  height: 16px;
}

/* ── LOCATION NOTE ──────────────────────────────────────────── */
.location-note {
  font-size: 13px;
  color: var(--ink-md);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

/* ── REQUEST AVAILABILITY MODAL (listing.php) ───────────────── */
.request-modal .modal-content
{
  border: none;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(28, 25, 21, 0.18);
}

.request-modal .modal-header
{
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.75rem 1.25rem;
}

.request-modal-eyebrow
{
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.request-modal .modal-title
{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

.request-modal .modal-body { padding: 1.5rem 1.75rem; }

.request-modal .form-label
{
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-lt);
  margin-bottom: 0.35rem;
}

.request-modal .form-control,
.request-modal .form-control:focus
{
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  box-shadow: none;
  transition: border-color 0.15s;
}

.request-modal .form-control:focus
{
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(156, 121, 83, 0.12);
}

.request-modal .modal-footer
{
  border-top: 1px solid var(--border);
  padding: 1rem 1.75rem 1.25rem;
}

.btn-request-submit
{
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  width: 100%;
  transition: background 0.15s;
  cursor: pointer;
}

.btn-request-submit:hover:not(:disabled) { background: var(--gold); }

.btn-request-submit:disabled
{
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-spinner
{
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes btn-spin { to { transform: rotate(360deg); } }

.request-success
{
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.request-success-icon
{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e9f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}

.request-success-icon i
{
  font-size: 1.6rem;
  color: #1a7f4b;
}

.request-success h5
{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.request-success p
{
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-md);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── HISTORY PAGE ───────────────────────────────────────────── */
.history-section { margin-bottom: 2.5rem; }

.history-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.history-section p {
  color: var(--ink-md);
  line-height: 1.8;
  font-size: 14.5px;
  margin-bottom: 0.75rem;
}

.history-section p:last-child { margin-bottom: 0; }

.history-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.keyland-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.keyland-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.keyland-block p {
  color: var(--ink-md);
  line-height: 1.8;
  font-size: 14.5px;
  margin-bottom: 0.75rem;
}

.keyland-block p:last-child { margin-bottom: 0; }

/* ── CONTACT PAGE ───────────────────────────────────────────── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.4rem;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
  font-size: 15px;
}

.contact-info-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lt);
  display: block;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 14.5px;
  color: var(--ink-md);
}

.contact-info-value a {
  color: inherit;
  text-decoration: none;
}

.contact-info-value a:hover { color: var(--accent); }

.form-label-custom {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lt);
  margin-bottom: 5px;
  display: block;
}

.form-control-custom {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-control-custom:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(28,25,21,0.08);
}

textarea.form-control-custom {
  resize: vertical;
  min-height: 130px;
}

select.form-control-custom {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8278' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}

.form-group-custom { margin-bottom: 1.1rem; }

.submit-btn {
  padding: 12px 36px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover { background: var(--gold); }

.alert-custom {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 1.4rem;
  border: 1px solid;
}

.alert-success-custom {
  background: var(--teal-lt);
  border-color: var(--teal);
  color: var(--ink-md);
}

.alert-error-custom {
  background: #fdf0f0;
  border-color: #e8a0a0;
  color: #7a2020;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #030126;
  color: var(--teal);
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media(max-width: 991.98px)
{
  .site-hero img        { height: 420px; }
  .gallery-thumbs       { display: none !important; }
  .gallery-grid         { height: 380px; }
  .property-gallery     { max-height: calc(380px + 0.5rem); }
}

@media(max-width: 575.98px)
{
  .site-hero img        { height: 260px; }
  .page-hero            { height: 200px; }
  .gallery-grid         { height: 260px; }
  .property-gallery     { max-height: calc(260px + 0.5rem); }
}