/* ============================================
   LOTFA RESORT — STYLESHEET
   ============================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    --navy: #000033;
    --gold: #D9A21B;
    --green: #176b45;
    --green-dark: #0f4d31;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --cream: #F5EFE3;
    --cream-light: #FAF7F0;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #777777;
    --border: #E5DCCB;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.15);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--cream);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); text-align: center; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1rem;
    color: var(--text);
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--green-dark);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- 4. HEADER & NAV ---------- */
header {
    width: 100%;
}

.site-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 20px;
    background-color: var(--white);
    text-align: center;
}

.site-brand img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.site-brand h2 {
    color: var(--navy);
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.3px;
    text-align: left;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    padding: 16px 20px;
    background-color: var(--navy);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

nav a {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 7px 0;
    transition: color 0.25s ease;
}

nav a:hover {
    color: var(--gold);
}

/* ---------- 5. MAIN LAYOUT ---------- */
main {
    width: 100%;
}

section {
    background-color: var(--white);
    width: 100%;
    max-width: 900px;
    margin: 32px auto;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 90px;
}

section > p {
    text-align: center;
    color: var(--text-light);
}

/* ---------- 6. BUTTONS ---------- */
.booking-button,
.secondary-button {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.booking-button {
    background-color: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.booking-button:hover {
    background-color: var(--green-dark);
    color: var(--white);
    border-color: var(--green-dark);
    transform: translateY(-2px);
}

.secondary-button {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.secondary-button:hover {
    background-color: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

/* Centered CTA when it is a direct child of a section (Contact) */
section > .booking-button {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
}

/* ---------- 7. HERO ---------- */
.hero-section {
    width: 100%;
    max-width: 100%;
    min-height: 540px;
    margin: 0 0 32px;
    padding: 90px 7%;
    border-radius: 0;
    box-shadow: none;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22)),
        url("images/Swimming-Pool.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 680px;
}

.hero-section h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
    text-align: left;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 12px;
}

.hero-section .slogan {
    color: var(--gold);
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    margin: 20px 0 25px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* ---------- 8. CARDS ---------- */
.room-card,
.review-card {
    background-color: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.room-card h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.room-card p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
}

/* Room photo — direct child img only (family gallery excluded) */
#accommodation .room-card > img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 15px 0;
    transition: transform 0.35s ease;
}

@media (hover: hover) {
    #accommodation .room-card > img:hover {
        transform: scale(1.03);
    }
}

/* ---------- 9. TABLES ---------- */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 30px;
    border-radius: var(--radius);
}

#room-rates table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    font-size: 0.95rem;
    min-width: 420px;
}

#room-rates caption {
    caption-side: top;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 0 10px;
    font-style: italic;
}

#room-rates th {
    background-color: var(--navy);
    color: var(--white);
    padding: 14px;
    text-align: left;
    font-weight: 600;
}

#room-rates td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

#room-rates tbody tr:nth-child(even) {
    background-color: var(--cream-light);
}

#room-rates h3 {
    color: var(--navy);
    margin-top: 35px;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Christmas highlighted row */
.christmas-rate td {
    background: linear-gradient(135deg, #0b3d2e, #14532d);
    color: var(--white) !important;
    font-weight: 600;
    padding: 16px 14px;
    border-bottom: 2px solid #d4af37;
    font-size: 1rem;
}

/* ---------- 10. GALLERY GRIDS ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.gallery-item {
    background-color: var(--cream-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--navy);
    text-align: center;
    margin: 0;
    padding: 12px 10px;
}

@media (hover: hover) {
    .gallery-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

/* Family apartment mini grid */
.family-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.family-gallery > div {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.family-gallery img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .family-gallery > div:hover img {
        transform: scale(1.05);
    }
}

/* Facilities pill list */
.facilities-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.facilities-list li {
    background-color: var(--cream);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--border);
}

/* ---------- 11. CONFERENCE ---------- */
#conference {
    text-align: center;
}

#conference .room-card {
    max-width: 520px;
    margin: 20px auto;
    padding: 28px 24px;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

#conference .conference-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green);
    margin: 15px 0;
    text-align: center;
}

/* ---------- 12. REVIEWS ---------- */
#reviews {
    text-align: center;
}

.review-card {
    text-align: left;
    padding: 25px;
}

.review-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.review-card h3 {
    color: var(--navy);
    font-size: 1.25rem;
    margin: 10px 0 5px;
    text-align: left;
}

.review-stars {
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-align: left;
}

.review-source {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: left;
    margin: 5px 0 15px;
}

.review-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 12px;
}

.review-disclaimer {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 25px;
    font-style: italic;
}

/* ---------- 13. CONTACT ---------- */
#contact {
    text-align: center;
}

#contact p {
    text-align: center;
}

#contact a {
    color: var(--green);
    font-weight: 500;
}

#contact a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.map-wrapper {
    margin: 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

/* ---------- 14. FOOTER ---------- */
footer {
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 30px 15px;
    margin-top: 40px;
}

footer p {
    color: var(--white);
    font-size: 0.9rem;
    margin: 6px 0;
    text-align: center;
}

footer .footer-slogan {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

/* ---------- 15. FLOATING WHATSAPP BUTTON ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-dark);
    color: var(--white);
    transform: scale(1.08);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 768px) {
    section {
        padding: 30px 20px;
        margin: 24px auto;
    }

    #room-rates h3 {
        margin-top: 28px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .site-brand {
        flex-direction: column;
        gap: 8px;
        padding: 15px 12px;
    }

    .site-brand h2 {
        font-size: 1.15rem;
        text-align: center;
    }

    .site-brand img {
        width: 64px;
        height: 64px;
    }

    nav {
        position: relative;
        gap: 5px 14px;
        padding: 12px 10px;
    }

    nav a {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    section {
        padding: 25px 16px;
        margin: 18px auto;
        border-radius: 10px;
    }

    .hero-section {
        min-height: 460px;
        padding: 55px 22px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 0.98rem;
    }

    .hero-section .slogan {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }

    #accommodation .room-card > img {
        height: auto;
        max-height: 320px;
    }

    .family-gallery {
        gap: 8px;
    }

    .family-gallery img {
        height: 130px;
    }

    .gallery-item img {
        height: 200px;
    }

    .review-card {
        padding: 20px 16px;
    }

    .review-card h3 {
        font-size: 1.1rem;
    }

    .review-stars {
        font-size: 1.2rem;
    }

    #room-rates th,
    #room-rates td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    #room-rates h3 {
        font-size: 1.1rem;
    }

    .map-wrapper iframe {
        height: 260px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    footer {
        padding: 25px 12px;
        margin-top: 30px;
    }
}

/* ---------- 17. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ---------- 18. ENQUIRY FORM ---------- */
#enquiry {
    text-align: center;
}

.enquiry-form {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: left;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background-color: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--green);
    background-color: var(--white);
}

/* Days Counter */
.counter-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--cream-light);
}

.counter-btn {
    background-color: var(--white);
    color: var(--navy);
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.counter-btn:hover {
    background-color: var(--cream);
}

.counter-wrapper input {
    border: none;
    text-align: center;
    background: transparent;
    font-weight: 600;
    -moz-appearance: textfield;
}

.counter-wrapper input::-webkit-outer-spin-button,
.counter-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Guests Selects */
.guests-wrapper {
    display: flex;
    gap: 10px;
}

.guests-wrapper select {
    flex: 1;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    padding: 16px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .enquiry-form {
        padding: 20px 15px;
    }
    .guests-wrapper {
        flex-direction: column;
    }
}