/*
 * Gallery website design (docs/specs/phase-10-website-designs.md). Loaded only when the hotel's
 * site_design is "gallery". Colours come from --brand / --brand-dark set in templates/base.html,
 * so each hotel's brand colour (default #7c6a46 for this design) drives the whole look.
 */

.design-gallery {
  --gallery-ink: #1c1c1c;
  --gallery-muted: #6b6b6b;
  --gallery-surface: #fafafa;
  --gallery-shadow: 0 6px 24px rgba(0, 0, 0, .06);
  --gallery-radius: 4px;
  background-color: #fff !important;
  color: var(--gallery-ink);
}

/* Header: light bar, menu centred, square "Book now" button */
.design-gallery .site-header.bg-body { background-color: var(--gallery-surface) !important; border-bottom: 0 !important; }
.design-gallery .site-header { padding-top: .9rem; padding-bottom: .9rem; }
.design-gallery .site-header .navbar-brand { font-weight: 600; }
.design-gallery .site-header.navbar-light .navbar-brand { color: var(--brand); }
.design-gallery .site-header .nav-link { font-weight: 500; }
.design-gallery .site-header.navbar-light .nav-link { color: var(--gallery-ink); }
.design-gallery .site-header.navbar-light .nav-link:hover,
.design-gallery .site-header.navbar-light .nav-link.active { color: var(--brand); }
.design-gallery .site-header .nav-link.active { font-weight: 600; }
.design-gallery .btn-book { padding: .65rem 1.75rem; font-weight: 500; }

/* Buttons, cards and form controls: square corners, soft shadows */
.design-gallery .btn { border-radius: var(--gallery-radius); }
.design-gallery .card { border: 0; border-radius: var(--gallery-radius); box-shadow: var(--gallery-shadow) !important; }
.design-gallery .card-img-top { border-radius: var(--gallery-radius) var(--gallery-radius) 0 0; }
.design-gallery .form-control,
.design-gallery .form-select { border-radius: var(--gallery-radius); }
.design-gallery .form-control:focus,
.design-gallery .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 25%, transparent);
}
.design-gallery .rounded-3 { border-radius: var(--gallery-radius) !important; }
.design-gallery .shadow-sm { box-shadow: var(--gallery-shadow) !important; }
/* Links in page content (not header/footer, which have their own colours) */
.design-gallery main a:not(.btn):not(.nav-link):not(.dropdown-item) { color: var(--brand); }
.design-gallery main a:not(.btn):not(.nav-link):not(.dropdown-item):hover { color: var(--brand-dark); }
.design-gallery .accordion-button:not(.collapsed) {
  color: var(--brand-dark);
  background-color: color-mix(in srgb, var(--brand) 12%, white);
}
.design-gallery .accordion-button:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 25%, transparent); }
.design-gallery h1, .design-gallery h2, .design-gallery h3 { color: inherit; }

/* Footer: brand colour block with light text */
.design-gallery .site-footer { background-color: var(--brand); color: rgba(255, 255, 255, .9); }
.design-gallery .site-footer a:not(.btn) { color: rgba(255, 255, 255, .9); text-decoration: none; }
.design-gallery .site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.design-gallery .site-footer ul li { margin-bottom: .45rem; }
.design-gallery .site-footer-name { font-size: 1.6rem; font-weight: 600; color: #fff !important; }
.design-gallery .site-footer-heading { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.design-gallery .site-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .2); text-align: center; }

/* Shared section pieces (step 3) */
.design-gallery { overflow-x: clip; } /* lets .g-bleed span the viewport without a sideways scrollbar */
.design-gallery .g-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.design-gallery .g-section { padding: 4rem 0 1rem; }
.design-gallery .g-section-title { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 500; margin-bottom: .5rem; }
.design-gallery .g-section-lead { color: var(--gallery-muted); margin-bottom: 2.5rem; }
.design-gallery .g-band-lead { color: rgba(255, 255, 255, .88); }
.design-gallery .g-title-bar { width: 6rem; height: 3px; background: #fff; margin-bottom: 1rem; }
.design-gallery .g-photo-placeholder { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.design-gallery .btn-outline-brand {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
}

/* Home banner: text left, photo right, search bar overlapping the photo's bottom edge */
.design-gallery .g-hero { background: var(--gallery-surface); padding-top: 1rem; }
.design-gallery .g-eyebrow { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.9rem; color: var(--brand); }
.design-gallery .g-hero-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 1.15; }
.design-gallery .g-hero-text { color: var(--gallery-muted); max-width: 26rem; margin-top: 1rem; }
.design-gallery .g-hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gallery-radius); }
.design-gallery .g-tour-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--gallery-ink) !important; text-decoration: none; font-weight: 500; }
.design-gallery .g-tour-icon {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 1.3rem;
}
.design-gallery .g-search {
  position: relative; z-index: 1; margin: 1.5rem 0 0; padding: 1.25rem;
  background: #fff; border-radius: var(--gallery-radius); box-shadow: var(--gallery-shadow);
}
.design-gallery .g-search .form-label { font-size: .85rem; font-weight: 500; margin-bottom: .3rem; }
.design-gallery .g-search .form-label .bi { color: var(--brand); }
@media (min-width: 992px) {
  .design-gallery .g-hero-photo { aspect-ratio: 16 / 13; }
  .design-gallery .g-search { margin: -4.5rem 0 0; width: calc(100% - 1.5rem); }
}
.design-gallery .g-perks { padding: 2rem 0 0; color: var(--gallery-muted); font-size: .95rem; }

/* Facilities grid */
.design-gallery .g-facility {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  height: 100%; min-height: 10rem; padding: 1.5rem 1rem; background: var(--gallery-surface);
  border-radius: var(--gallery-radius); color: var(--brand); font-weight: 500; font-size: 1.05rem;
}
.design-gallery .g-facility .bi { font-size: 2.4rem; line-height: 1; }

/* Rooms band over a photo */
.design-gallery .g-band {
  margin-top: 4rem; padding: 4rem 0; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) center / cover no-repeat;
}
.design-gallery .g-room-card {
  position: relative; display: block; height: 100%; padding: 1.1rem; background: #fff;
  border-radius: var(--gallery-radius); color: var(--gallery-ink) !important; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.design-gallery .g-room-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.design-gallery .g-room-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gallery-radius); }
.design-gallery .g-room-badge {
  position: absolute; top: 1.8rem; right: 1.8rem; padding: .3rem .6rem; font-size: .75rem; font-weight: 600;
  background: var(--brand); color: #fff; border-radius: var(--gallery-radius);
}

/* Testimonials */
.design-gallery .g-testimonial {
  display: flex; flex-direction: column; padding: 1.75rem; background: var(--gallery-surface);
  border-radius: var(--gallery-radius);
}
.design-gallery .g-stars { color: #f5b301; letter-spacing: .1rem; }
.design-gallery .g-quote { font-size: 2.2rem; line-height: 1; color: var(--brand); display: block; margin-bottom: .25rem; }
.design-gallery .g-testimonial blockquote p { color: #444; }
.design-gallery .g-avatar {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 18%, white); color: var(--brand-dark); font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .design-gallery .g-room-card { transition: none; }
  .design-gallery .g-room-card:hover { transform: none; }
}

/* Inner-page banner (step 4) */
.design-gallery .g-page-banner {
  display: flex; align-items: center; min-height: 22rem; padding: 4rem 0; margin-bottom: 3rem; color: #fff;
  background-size: cover; background-position: center;
}
.design-gallery .g-page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
.design-gallery .g-page-lead { max-width: 38rem; margin: 1rem auto 0; font-size: 1.15rem; color: rgba(255, 255, 255, .92); }
.design-gallery .g-scroll {
  display: inline-grid; place-items: center; width: 2.6rem; height: 4rem; margin-top: 2rem;
  border: 2px solid #fff; border-radius: 2rem; color: #fff; font-size: 1.2rem;
}
.design-gallery .g-scroll:hover { background: rgba(255, 255, 255, .15); color: #fff; }
@media (min-width: 992px) { .design-gallery .g-page-banner { min-height: 30rem; } }

/* Rooms grid */
.design-gallery .g-room-tile { display: flex; flex-direction: column; background: #fff; box-shadow: var(--gallery-shadow); border-radius: var(--gallery-radius); }
.design-gallery .g-room-tile-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--gallery-radius) var(--gallery-radius) 0 0; }
.design-gallery .g-room-tile-body { padding: 1rem 1rem .9rem; border-bottom: 1px solid #e6e1d8; flex-grow: 1; }
.design-gallery .g-room-tile-name { font-size: 1.35rem; font-weight: 500; margin: 0 0 .35rem; }
.design-gallery main .g-room-tile-name a { color: var(--brand); text-decoration: none; }
.design-gallery .g-room-tile-price { font-size: 1.15rem; font-weight: 500; color: var(--brand); }
.design-gallery .g-room-tile-price span { font-size: .85rem; color: var(--gallery-muted); font-weight: 400; }
.design-gallery .g-room-tile-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 1rem 1rem; }
.design-gallery .g-amenity-dot {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: #f1efea; color: var(--gallery-muted);
}

/* Explore: facility photo cards with overlapping text */
.design-gallery .g-tour-card { margin-bottom: 3rem; }
.design-gallery .g-tour-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1.5rem; }
.design-gallery .g-tour-body {
  position: relative; width: min(92%, 40rem); margin: -4rem auto 0; padding: 1.5rem 1.75rem;
  background: #fff; border-top: 10px solid var(--brand); border-radius: .9rem; box-shadow: var(--gallery-shadow);
}
.design-gallery .g-tour-card-plain .g-tour-body { margin-top: 0 !important; }  /* no photo: just the text card */
.design-gallery .g-tour-name { font-size: 1.4rem; font-weight: 500; color: var(--brand); margin-bottom: .4rem; }
@media (min-width: 992px) { .design-gallery .g-tour-photo { aspect-ratio: 21 / 9; } .design-gallery .g-tour-body { margin-top: -6rem; } }
.design-gallery .g-facility-sm { min-height: 7.5rem; font-size: .95rem; }
.design-gallery .g-facility-sm .bi { font-size: 1.8rem; }
.design-gallery .g-gallery-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gallery-radius); }

/* Panels (forms, contact details) */
.design-gallery .g-panel { max-width: 46rem; padding: 1.75rem; background: #fff; border: 1px solid #ece8e0; border-radius: var(--gallery-radius); }
.design-gallery .g-contact-list p { display: flex; gap: .75rem; margin-bottom: .9rem; }
.design-gallery .g-contact-list p .bi { color: var(--brand); font-size: 1.15rem; }

/* Contact: full-width map that meets the footer */
.design-gallery .g-map { display: block; height: 26rem; border: 0; margin-top: 4rem; margin-bottom: -3rem; }

/* Step 5: compact banner for booking pages, and shared pieces on the remaining pages */
.design-gallery .g-page-banner-compact { min-height: 11rem !important; padding: 2.5rem 0; margin-bottom: 2rem; }
.design-gallery .g-page-banner-compact .g-page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.design-gallery .g-page-banner-compact .g-page-lead { margin-top: .5rem; }
@media (min-width: 992px) { .design-gallery .g-page-banner-compact { min-height: 14rem !important; } }
.design-gallery .breadcrumb-item.active { color: var(--gallery-muted); }
.design-gallery .carousel { border-radius: var(--gallery-radius) !important; }
.design-gallery main .bg-body.shadow-sm { border: 1px solid #ece8e0; box-shadow: none !important; }
.design-gallery .accordion { --bs-accordion-border-radius: var(--gallery-radius); --bs-accordion-inner-border-radius: var(--gallery-radius); }
.design-gallery .accordion-button { font-weight: 500; }
.design-gallery .badge { border-radius: var(--gallery-radius); font-weight: 500; }
.design-gallery .alert { border-radius: var(--gallery-radius); }
.design-gallery .btn-outline-secondary {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
}
.design-gallery main h2.h5, .design-gallery main h2.h6 { font-weight: 600; }
.design-gallery .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.design-gallery .form-check-input:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 25%, transparent); border-color: var(--brand); }
.design-gallery main code { color: var(--brand-dark); }
