/* ── Variables ─────────────────────────────────────────────────── */
:root {
    /* Logo palette — Quinta do Xarrama blues */
    --color-primary: #4A6FA5;        /* cornflower blue — leaves */
    --color-primary-dark: #263261;   /* dark navy — brand text / stems */
    --color-primary-light: #7B9DC0;  /* light steel blue — highlights */
    --color-secondary: #1A2440;      /* very dark navy — deep accents */
    --color-accent: #6B83A8;         /* mid blue-grey — "TURISMO RURAL" tone */
    --color-text: #1e2b3a;
    --color-text-muted: #5a6a7e;
    --color-bg: #f7f8fb;             /* cool off-white */
    --color-bg-alt: #edf1f7;         /* soft blue-tinted section bg */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', sans-serif;
    --border-radius: 4px;
    --transition: 0.3s ease;
}

/* ── Base ─────────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, .heading {
    font-family: var(--font-heading);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--color-primary-dark); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-hotel {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: background-color var(--transition), transform var(--transition);
}

.btn-hotel:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-hotel {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    border-radius: var(--border-radius);
    padding: 0.55rem 1.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.btn-outline-hotel:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* ── Navbar ───────────────────────────────────────────────────── */
#mainNav {
    transition: background-color 0.3s, box-shadow 0.3s;
    padding: 1rem 0;
}

#mainNav.navbar-white {
    background-color: #fff;
}

#mainNav.scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

#mainNav.scrolled .nav-link {
    color: var(--color-text) !important;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: inherit;
}

.navbar-logo {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.8rem !important;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ── Hero Carousel ───────────────────────────────────────────── */
.hero-carousel {
    position: relative;
}

.hero-carousel-bg {
    min-height: 65vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-carousel-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.hero-carousel-caption {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 2rem;
}

.hero-carousel .carousel-indicators {
    z-index: 20;
    margin-bottom: 2rem;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 20;
    width: 5%;
}

/* ── Booking Search Widget ───────────────────────────────────── */
.hero-section-wrapper {
    position: relative;
}

/* ── Weather Widget ──────────────────────────────────────────── */
.weather-widget {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 25;
    background: rgba(26, 36, 64, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    min-width: 200px;
}

.weather-widget-loading {
    text-align: center;
    font-size: 1.5rem;
    opacity: 0.7;
}

.weather-widget-now {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.weather-widget-icon {
    font-size: 2rem;
    color: var(--color-primary-light);
}

.weather-widget-temp {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.weather-widget-cond {
    font-size: 0.75rem;
    opacity: 0.85;
}

.weather-widget-forecast {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-widget-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    gap: 0.15rem;
    text-transform: capitalize;
}

.weather-widget-day-name {
    opacity: 0.8;
}

.weather-widget-day i {
    font-size: 1rem;
    color: var(--color-primary-light);
}

.weather-widget-error {
    font-size: 0.75rem;
    opacity: 0.8;
}

@media (max-width: 767.98px) {
    .weather-widget {
        position: static;
        margin: 1rem auto 0;
        max-width: 260px;
        background: var(--color-secondary);
    }
}

.booking-search-wrapper {
    position: relative;
    z-index: 100;
    margin-top: -3.5rem;
    margin-bottom: 1rem;
}

.booking-search-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.20);
    padding: 1.75rem 2rem;
}

.booking-search-card .form-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.booking-search-card .form-control {
    border-color: #d5dce8;
    border-radius: 6px;
    font-size: 0.95rem;
}

.booking-search-card .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.15);
}

.text-primary-hotel { color: var(--color-primary) !important; }

/* ── Booking Widget — Syncfusion DatePicker overrides ──────── */
/* Match the Bootstrap 5 form-control look used in the widget   */
.booking-datepicker.e-date-wrapper {
    border: 1px solid #d5dce8 !important;
    border-radius: 6px !important;
    padding: 0.38rem 0.65rem !important;
    background: #fff !important;
    width: 100% !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 38px;
}

/* Remove the animated blue underline Syncfusion adds by default */
.booking-datepicker.e-input-group:not(.e-float-icon-left)::before,
.booking-datepicker.e-input-group:not(.e-float-icon-left)::after {
    display: none !important;
}

/* Focus ring */
.booking-datepicker.e-input-group.e-input-focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.15) !important;
}

/* The inner text input */
.booking-datepicker .e-input {
    font-size: 0.95rem !important;
    color: var(--color-text) !important;
    height: auto !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    background: transparent !important;
    border: none !important;
}

/* Calendar icon button colour */
.booking-datepicker .e-date-icon {
    color: var(--color-primary) !important;
    font-size: 1rem;
}

.booking-search-card .btn-hotel {
    padding: 0.6rem 2rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.booking-divider {
    width: 1px;
    background-color: #d5dce8;
    align-self: stretch;
    margin: 0 0.5rem;
}

@media (max-width: 991px) {
    .booking-search-wrapper {
        margin-top: 0;
    }
    .booking-search-card {
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
    .booking-divider { display: none; }
}

/* ── Section Headings ────────────────────────────────────────── */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 0.75rem auto 0;
}

/* ── Room Cards ──────────────────────────────────────────────── */
.room-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
    background: #fff;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

.room-card-img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.room-card-body { padding: 1.5rem; }

.room-card-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.room-card-price span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ── Service Cards ───────────────────────────────────────────── */
.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-4px); }

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonial-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.testimonial-stars { color: var(--color-primary-light); }

.testimonial-text {
    font-style: italic;
    color: var(--color-text-muted);
    margin: 1rem 0;
}

/* ── Gallery Grid ────────────────────────────────────────────── */
.gallery-grid { columns: 3 280px; gap: 12px; }

.gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

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

/* ── FAQ Accordion ───────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    box-shadow: none;
}

.accordion-button:focus { box-shadow: none; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
}

.footer-top { border-bottom: 1px solid #333; }

.footer-brand {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.4rem;
}

.footer-heading {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-primary-light); }

.footer-social {
    color: #aaa;
    font-size: 1.3rem;
    transition: color var(--transition);
}

.footer-social:hover { color: var(--color-primary-light); }

.footer-bottom { background-color: #111; }

.footer-bottom a:hover { color: var(--color-primary-light); }

/* ── Blog Post ───────────────────────────────────────────────── */
.post-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform var(--transition);
}

.post-card:hover { transform: translateY(-4px); }

.post-card-img { height: 220px; object-fit: cover; width: 100%; }

/* ── Background sections ─────────────────────────────────────── */
.bg-hotel-alt { background-color: var(--color-bg-alt); }

/* ── Amenity badges ──────────────────────────────────────────── */
.amenity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-bg-alt);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    color: var(--color-text);
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-primary-hotel { color: var(--color-primary) !important; }
.bg-primary-hotel { background-color: var(--color-primary) !important; }
.section-padding { padding: 5rem 0; }
