/*
Theme Name: The Doves Nest Child
Description: Scoped styling and a booking widget area for The Doves Nest. Requires the licensed Divi 5 parent theme.
Author: The Doves Nest
Version: 0.1.0
Template: Divi
Text Domain: thedovesnest-child
*/
/* Apply dn-site to each page section and to the global header/footer sections.
   Use native Divi design settings for typography, spacing, backgrounds, and responsive layout first. */
.dn-site {
  --dn-ivory: #fbf7ee;
  --dn-ocean: #3a2b1c;
  --dn-sea: #815624;
  --dn-sand: #ebdfc6;
  --dn-gold: #b88826;
  --dn-ink: #3a2b1c;
}
.dn-site a:focus-visible,
.dn-site button:focus-visible,
.dn-site input:focus-visible,
.dn-site select:focus-visible,
.dn-site textarea:focus-visible {
  outline: 3px solid #3a2b1c;
  outline-offset: 4px;
}
.dn-site.dn-on-dark a:focus-visible,
.dn-site.dn-on-dark button:focus-visible {
  outline-color: #fbf7ee;
}
/* Gold is decorative; small text uses a darker, readable shade. */
.dn-site .dn-eyebrow { color: #815624; letter-spacing: .14em; }
.dn-site .dn-hero-title { text-wrap: balance; }
.dn-site .dn-photo img { display: block; width: 100%; object-fit: cover; }
.dn-site .dn-card-photo img { aspect-ratio: 2 / 1; }
.dn-site .dn-gallery-photo img { aspect-ratio: 16 / 9; }
.dn-site .dn-outline-button { border-color: #815624; color: #3a2b1c; }
.dn-site .dn-booking-sidebar .widget { margin: 0; width: 100%; }
.dn-site .dn-booking-sidebar label { color: #3a2b1c; }
@media (max-width: 767px) {
  .dn-site .dn-overlap-photo { position: static !important; transform: none !important; }
  .dn-site .dn-card-photo img { aspect-ratio: 3 / 2; }
  .dn-site .dn-booking-sidebar input,
  .dn-site .dn-booking-sidebar select { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dn-site *, .dn-site *::before, .dn-site *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
.dn-site .dn-inline { display: inline-block; margin-right: 12px; margin-top: 8px; }
.dn-hero { position: relative; }
.dn-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(44,33,22,.67),rgba(44,33,22,.04) 80%); pointer-events: none; }
.dn-hero .dn-eyebrow { color: #fbf7ee; }
.dn-site.dn-on-dark a { color: #fbf7ee; }
.dn-site a:hover { text-decoration: underline; }
.dn-site .et_pb_button:hover { text-decoration: none; filter: brightness(.94); }
.dn-header-row { display: flex; align-items: center; }
.dn-header-row .et_pb_column { margin-bottom: 0; }
.dn-logo img { height: 82px; width: auto !important; object-fit: contain; }
.dn-languages { display: flex; gap: 9px; }
.dn-languages a[aria-current] { color: #815624; }
.dn-booking-section { position: relative; z-index: 5; }
/* Divi clips rounded rows by default; Vik's calendar and guest panels
   need to extend beyond the booking bar. */
.dn-booking-section .dn-booking-row { overflow: visible !important; }
/* Keep Divi's article-table padding from expanding the two-month calendar. */
.dn-booking-sidebar .ui-datepicker table.ui-datepicker-calendar {
  width: 100% !important;
  table-layout: fixed;
  border: 0;
  margin: 0 !important;
}
.dn-booking-sidebar .ui-datepicker table th {
  padding: 10px 0 !important;
  border: 0;
  text-align: center;
}
.dn-booking-sidebar .ui-datepicker table td > * {
  width: 100%;
  max-width: 40px;
  margin-left: auto;
  margin-right: auto;
}
.dn-enquiry-search { display: grid; grid-template-columns: 1fr 1fr .8fr 1.4fr; align-items: center; gap: 20px; font-family: Arial,sans-serif; }
.dn-enquiry-search label { color: #3a2b1c; font-size: 15px; display: block; }
.dn-enquiry-search input { display: block; width: 100%; min-width: 0; background: transparent; border: 0; color: #6b5c4a; padding: 8px 0; font: inherit; }
.dn-enquiry-search button { background: #815624; color: white; border: 0; padding: 17px 12px; border-radius: 5px; cursor: pointer; font: inherit; font-size: 16px; }
.dn-enquiry-search small { grid-column: 1/-1; text-align: center; font-size: 12px; line-height: 1.2; margin-top: -10px; }
.dn-benefit-icon { color: #815624; font-size: 40px; line-height: 1; padding-bottom: 12px; }
.dn-welcome-photo img { aspect-ratio: 1.6; }
.dn-overlap-photo img { border: 5px solid #fbf7ee; box-shadow: 0 5px 12px #3a2b1c33; aspect-ratio: 1.3; }
.dn-split-row { display: flex; align-items: stretch; }
.dn-split-row > .et_pb_column:first-child .et_pb_image { height: 100%; }
.dn-split-photo, .dn-split-photo .et_pb_image_wrap, .dn-split-photo img { height: 100%; }
.dn-split-photo img { min-height: 290px; }
.dn-location-photo img { max-height: 180px; }
.dn-contact-item { padding-bottom: 24px; border-bottom: 1px solid #ebdfc6; }
.dn-enquiry-form .et_pb_contact_form_label { display: block; font-family: Georgia,serif; font-size: 17px; color: #3a2b1c; margin-bottom: 5px; }
.dn-enquiry-form input.input, .dn-enquiry-form textarea.input, .dn-enquiry-form select { border: 1px solid #b7b4ae; border-radius: 3px; padding: 12px; }
.dn-enquiry-form .et_contact_bottom_container { float: none; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.dn-footer-copyright { border-top: 1px solid #ffffff66; }
.dn-footer-logo img { max-height: 130px; object-fit: contain; object-position: left; }
@media (max-width: 980px) {
 .dn-header-row { flex-wrap: wrap; gap: 14px; }
 .dn-header-row > .et_pb_column { width: auto !important; flex: 1; margin: 0 !important; }
 .dn-header-row > .et_pb_column:nth-child(2) { flex: 1.4; }
 .dn-split-row { display: block; }
 .dn-enquiry-search { grid-template-columns: 1fr 1fr; }
 .dn-photo-caption { margin: 20px 0 0 !important; width: 100% !important; }
 .dn-overlap-photo { margin: 20px 0 0 !important; }
}
@media (max-width: 767px) {
 .dn-enquiry-search { grid-template-columns: 1fr; gap: 10px; }
 .dn-header-row > .et_pb_column:last-child { flex-basis: 100%; display: flex; gap: 18px; align-items: center; }
 .dn-header-row > .et_pb_column:last-child .et_pb_text { margin: 0 !important; }
 .dn-hero h1 { overflow-wrap: break-word; }
 .dn-split-row > .et_pb_column { padding: 26px !important; }
 .dn-split-row > .et_pb_column:first-child { padding: 0 !important; }
 .dn-site .et_pb_button { max-width: 100%; }
}
.dn-hero .dn-eyebrow p, .dn-invitation .dn-eyebrow p { color: #fbf7ee; }
.dn-enquiry-search { gap: 12px 20px; }
.dn-enquiry-search label, .dn-enquiry-search button { font-family: Arial,sans-serif; }
.dn-header-row > .et_pb_column:first-child { width: 24%; }
.dn-header-row > .et_pb_column:last-child { display: flex; align-items: center; gap: 16px; width: 30%; }
.dn-header-row > .et_pb_column:last-child .et_pb_text { margin: 0 !important; }
.dn-header-row > .et_pb_column:nth-child(2) { width: 44%; }
.dn-top-strip p, .dn-hero .et_pb_text_inner > p, .dn-footer p { font-family: Arial,sans-serif; }
.dn-invitation .et_pb_button_module_wrapper { display: inline-block; margin-right: 12px; margin-top: 8px; }
.dn-policy-link { float: right; }
.dn-rate-table { width: 100%; border-collapse: collapse; font-family: Arial,sans-serif; font-size: 16px; }
.dn-rate-table caption { text-align: left; padding: 12px 0; }
.dn-rate-table th, .dn-rate-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid #ebdfc6; }
.dn-rate-table thead { background: #ebdfc6; }
.dn-site .dn-booking-sidebar { margin: 0; }
.dn-site .dn-booking-sidebar .widget { padding-bottom: 0; }
.dn-site .dn-booking-sidebar .vbo-horizsearch-humanformat-wrap { background: transparent; }
.dn-site .dn-booking-sidebar .vbmodhorsearchmaindiv { border: 0; margin: 0; background: transparent; }
.dn-site .dn-booking-sidebar input[type=submit], .dn-site .dn-booking-sidebar button[type=submit] { background: #815624; color: #ffffff; border: 1px solid #815624; border-radius: 5px; font-family: Arial,sans-serif; }
@media(max-width:767px) { .dn-rate-table { font-size: 12px; } .dn-rate-table th,.dn-rate-table td { padding: 10px 4px; } .dn-policy-link { float: none; display: block; margin-top: 8px; } }
.dn-header-booking a { white-space: nowrap; }
.dn-site .dn-booking-sidebar .vbo-horizsearch-showcalendar { border: 0; padding: 8px 12px; min-height: 48px; }
.dn-site .dn-booking-sidebar .vbo-horizsearch-showcalendar i { color: #815624; }
.dn-site .dn-booking-sidebar .vbmodhorsearch-hum-guests-count { border: 0; }
.dn-site .dn-booking-sidebar .vbmodhorsearch-humcalcont label { font-family: Georgia,serif; font-size: 16px; }
.dn-site .dn-booking-sidebar .vbmodhorsearch-hum-guests-count-wrap > label { font-family: Georgia,serif; font-size: 16px; }
.dn-site .dn-booking-sidebar .vbmodhorsearch-hum-guests-count-label { font-size: 11px; }
.dn-site .dn-booking-sidebar .vbo-mod-horsearch-sbt { min-height: 48px; font-weight: 400; }

/* ------------------------------------------------------------------
   VikBooking surfaces — align the booking engine with the site palette
   ------------------------------------------------------------------ */
.dn-booking-page .btn,
.dn-booking-page .vbo-pref-color-btn,
.dn-booking-page input[type="submit"],
.dn-booking-page button.btn,
.dn-booking-page .vbselectr-result {
  background: var(--dn-sea, #815624);
  border: 0;
  border-radius: 2px;
  color: #ffffff;
  padding: 12px 22px;
  font-size: .95rem;
  letter-spacing: .03em;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}
.dn-booking-page .btn:hover,
.dn-booking-page .vbo-pref-color-btn:hover,
.dn-booking-page input[type="submit"]:hover,
.dn-booking-page .vbselectr-result:hover {
  background: var(--dn-ocean, #3a2b1c);
  color: #ffffff;
}
.dn-booking-page .btn[disabled],
.dn-booking-page .vbselectr-result[disabled] { opacity: .55; cursor: not-allowed; }

.dn-booking-page .vbo-pref-color-btn-secon,
.dn-booking-page .vbo-goback-link {
  background: transparent;
  border: 1px solid var(--dn-sand, #ebdfc6);
  color: var(--dn-ocean, #3a2b1c);
}

.dn-booking-page h1, .dn-booking-page h2, .dn-booking-page h3, .dn-booking-page h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dn-ocean, #3a2b1c);
  letter-spacing: 0;
}

.dn-booking-page .room_item,
.dn-booking-page .vblistroomblock,
.dn-booking-page .vbpricedet-priceblock,
.dn-booking-page .vbo-checkout-table {
  background: #ffffff;
  border: 1px solid var(--dn-sand, #ebdfc6);
  border-radius: 2px;
  box-shadow: none;
}

.dn-booking-page input[type="text"],
.dn-booking-page input[type="email"],
.dn-booking-page input[type="tel"],
.dn-booking-page input[type="number"],
.dn-booking-page input[type="password"],
.dn-booking-page select,
.dn-booking-page textarea {
  border: 1px solid var(--dn-sand, #ebdfc6);
  background: #ffffff;
  border-radius: 2px;
  padding: 10px 12px;
  color: var(--dn-ocean, #3a2b1c);
  box-shadow: none;
}
.dn-booking-page input:focus,
.dn-booking-page select:focus,
.dn-booking-page textarea:focus {
  border-color: var(--dn-sea, #815624);
  outline: 2px solid rgba(129,86,36, .18);
  outline-offset: 0;
}

.dn-booking-page .vbo-stepbar .vbo-step,
.dn-booking-page .vbo-stepbar span,
.dn-booking-page .vbo-stepbar a { color: var(--dn-ocean, #3a2b1c); }
.dn-booking-page .vbo-step-current { color: var(--dn-sea, #815624); font-weight: 600; }

.dn-booking-page .room_cost,
.dn-booking-page .room_cost .vbo_price { color: var(--dn-ocean, #3a2b1c); }

@media (max-width: 767px) {
  .dn-booking-page .btn,
  .dn-booking-page input[type="submit"],
  .dn-booking-page .vbselectr-result { width: 100%; }
}

/* VikBooking design tokens, scoped to the booking pages */
.dn-booking-page {
  --vbo-pref-bgcolor: #815624;
  --vbo-pref-bgcolorhov: #3a2b1c;
  --vbo-pref-textcolor: #815624;
  --vbo-base-color: #815624;
  --vbo-base-color-hover: #3a2b1c;
  --vbo-blue-color: #815624;
  --vbo-blue-color-hover: #3a2b1c;
  --vbo-border-color: #ebdfc6;
  --vbo-text-color: #3a2b1c;
  --vbo-middle-text-color: #815624;
  --vbo-light-text-color: #a47730;
  --vbo-input-style: #ffffff;
}
.dn-booking-page .vbo-pref-color-btn-secondary,
.dn-booking-page .vbo-goback-link {
  background: transparent;
  border: 1px solid var(--dn-sand, #ebdfc6);
  color: var(--dn-ocean, #3a2b1c);
}
.dn-booking-page .vbo-pref-color-btn-secondary:hover,
.dn-booking-page .vbo-goback-link:hover {
  background: var(--dn-ivory, #fbf7ee);
  color: var(--dn-ocean, #3a2b1c);
}

/* Mobile header: logo + burger on one row, actions beneath, menu drops below the header */
@media (max-width: 767px) {
  .dn-header-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 14px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .dn-header-row > .et_pb_column {
    width: auto !important;
    flex: none !important;
    margin: 0 !important;
    float: none !important;
  }
  .dn-header-row > .et_pb_column:nth-child(1) { grid-column: 1; }
  .dn-header-row > .et_pb_column:nth-child(2) { grid-column: 2; justify-self: end; }
  .dn-header-row > .et_pb_column:nth-child(3) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .dn-logo img { height: 54px; }
  .dn-header-row .et_pb_menu__wrap { justify-content: flex-end; }
  .dn-header-row .et_pb_menu_inner_container,
  .dn-header-row .et_pb_menu__wrap,
  .dn-header-row .et_pb_menu__menu,
  .dn-header-row .et_mobile_nav_menu { position: static; }
  .dn-header-row .et_mobile_menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    z-index: 90;
    background: #fbf7ee;
    border-top: 1px solid #ebdfc6;
    border-bottom: 1px solid #ebdfc6;
    box-shadow: 0 18px 32px rgba(58,43,28, .14);
    padding: 6px 0;
    margin: 0;
  }
  .dn-header-row .et_mobile_menu li a {
    display: block;
    padding: 12px 20px;
    color: #3a2b1c;
  }
  .dn-header-row .et_mobile_menu li + li { border-top: 1px solid #f8efd9; }
  .dn-header-row .mobile_menu_bar:before { color: #3a2b1c; }
}

@media (max-width: 767px) {
  /* Anchor the dropdown to the header row, not to the menu column */
  .dn-header-row > .et_pb_column:nth-child(2) { position: static; }
  .dn-header-row > .et_pb_column:nth-child(1) { justify-self: start; }
  .dn-header-row .et_pb_image,
  .dn-header-row .dn-logo,
  .dn-header-row .dn-logo a,
  .dn-header-row .dn-logo img { margin: 0 !important; text-align: left !important; }
}

@media (max-width: 767px) {
  /* The menu module itself is position:relative by default and would trap the dropdown */
  .dn-header-row .et_pb_menu { position: static !important; }
}

@media (max-width: 767px) {
  .dn-header-row .et_mobile_menu {
    background-color: #fbf7ee !important;
    border-top: 1px solid #ebdfc6 !important;
    border-bottom: 1px solid #ebdfc6 !important;
    box-shadow: 0 18px 32px rgba(58,43,28, .16) !important;
    padding: 6px 0 !important;
  }
  .dn-header-row .et_mobile_menu li a { padding: 12px 20px !important; }
}

/* Keep the header (and its dropdown) above page content */
.et-l--header { position: relative; z-index: 100; }

@media (max-width: 767px) {
  .dn-header-row ul.et_mobile_menu,
  #mobile_menu1.et_mobile_menu,
  #mobile_menu2.et_mobile_menu {
    background-color: #fbf7ee !important;
    background-image: none !important;
  }
}

/* Mobile booking flow: compact cards and form controls */
@media (max-width: 767px) {
  .dn-booking-page .room_item { margin-bottom: 12px !important; }

  .dn-booking-page .vblistroomblock {
    width: 100% !important;
    min-height: 0 !important;
    border-right: 0 !important;
  }
  .dn-booking-page .vblistroomblock .vbimglistdiv {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-height: 190px;
    overflow: hidden;
  }
  .dn-booking-page .vbimglistdiv img.vblistimg,
  .dn-booking-page .vblistroomblock img.vblistimg {
    width: 100% !important;
    height: 190px !important;
    object-fit: cover;
    margin: 0 !important;
  }
  .dn-booking-page .vbo-info-room { padding: 12px 14px 4px !important; }
  .dn-booking-page .vbcontdivtot { padding: 6px 14px 12px !important; }
  .dn-booking-page .vbrowroomcapacity { margin-bottom: 4px; }
  .dn-booking-page .vbselectr-result { padding: 11px 16px !important; }

  /* wizard controls */
  .dn-booking-page input[type="text"],
  .dn-booking-page input[type="email"],
  .dn-booking-page input[type="tel"],
  .dn-booking-page input[type="number"],
  .dn-booking-page select {
    padding: 8px 10px !important;
    font-size: 15px !important;
    height: auto !important;
  }
  .dn-booking-page .vbo-stepbar li { line-height: 2.1em !important; }
  .dn-booking-page .vbo-stepbar { margin-bottom: 6px !important; }
}

@media (max-width: 767px) {
  .dn-booking-page .vbo-stepbar {
    display: flex;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 0;
  }
  .dn-booking-page .vbo-stepbar li {
    flex: 1 1 25%;
    width: 25% !important;
    float: none;
    font-size: 12.5px;
    line-height: 3em !important;
  }
}

@media (max-width: 767px) {
  .dn-booking-page .vbo-stepbar { padding: 0 6px !important; }
}

/* ------------------------------------------------------------------
   Room lightbox: listings can now carry a full photo gallery, so the
   thumbnail strip wraps and scrolls instead of overflowing the frame.
   ------------------------------------------------------------------ */
.rooms-modal-gallery > .absolute {
  max-width: calc(100% - 2rem);
  max-height: 6.5rem;
  flex-wrap: wrap;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 2px;
}
.rooms-modal-gallery > .absolute button {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  /* One swipeable row reads better than a wrapped block over a short photo. */
  .rooms-modal-gallery > .absolute {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .rooms-modal-gallery > .absolute::-webkit-scrollbar { display: none; }
  .rooms-modal-gallery > .absolute button {
    width: 2.5rem;
    height: 2.5rem;
  }
}
