﻿/* =============================================
   Vintropica Holidays — site.css
   ASP.NET MVC Shared Layout Stylesheet
   ============================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --clr-primary: #c46239;
    --clr-primary-dk: #8e3416;
    --clr-primary-lt: #f4a261;
    --clr-accent: #ffe0c7;
    --clr-bg: #f7f2e9;
    --clr-bg-header: #f6f2ea;
    --clr-text: #333;
    --clr-muted: #666;
    --clr-white: #fff;
    --clr-topbar: #bc5d34;
    --nav-height: 60px;
    --transition: 0.3s ease;
    --radius: 30px;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    background: var(--clr-topbar);
    color: var(--clr-white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-greeting {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

    .topbar-links a {
        color: var(--clr-white);
        transition: color var(--transition);
    }

        .topbar-links a:hover {
            color: var(--clr-accent);
        }

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background: var(--clr-bg-header);
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(196,98,57,0.12);
}

.logo-wrap {
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--clr-primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-tagline {
    color: var(--clr-muted);
    font-size: 13px;
    margin-top: 5px;
    font-weight: 400;
}

/* Search + flags */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

    .search-box input {
        padding: 10px 42px 10px 18px;
        border-radius: var(--radius);
        border: 1.5px solid #d9cfc3;
        background: var(--clr-white);
        font-size: 14px;
        width: 240px;
        outline: none;
        transition: border-color var(--transition), width var(--transition);
        font-family: 'Poppins', sans-serif;
    }

        .search-box input:focus {
            border-color: var(--clr-primary);
            width: 270px;
        }

.search-icon {
    position: absolute;
    right: 14px;
    color: var(--clr-muted);
    font-size: 15px;
    pointer-events: none;
}

.flag-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flag {
    width: 38px;
    height: 26px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition), transform var(--transition);
}

    .flag:hover, .flag.active {
        border-color: var(--clr-primary);
        transform: scale(1.1);
    }

/* =============================================
   NAVBAR
   ============================================= */
.site-nav {
    background: var(--clr-primary);
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(142,52,22,0.25);
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 14px 0;
    background: none;
    border: none;
    aria-label: "Toggle Menu";
}

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--clr-white);
        border-radius: 2px;
        transition: transform var(--transition), opacity var(--transition);
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Menu */
.menu {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

    .menu > li {
        position: relative;
    }

        .menu > li > a,
        .menu > li > button.start-btn {
            display: block;
            color: var(--clr-white);
            font-weight: 500;
            font-size: 14px;
            padding: 18px 16px;
            transition: background var(--transition), color var(--transition);
            white-space: nowrap;
            letter-spacing: 0.2px;
            font-family: 'Poppins', sans-serif;
            border: none;
            background: none;
            cursor: pointer;
        }

            .menu > li > a:hover,
            .menu > li.has-dropdown:hover > a {
                background: rgba(255,255,255,0.12);
                color: var(--clr-accent);
            }

/* Start Planning Button */
.start-btn {
    background: var(--clr-primary-lt) !important;
    color: var(--clr-white) !important;
    padding: 9px 20px !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
   /* margin-left: 6px;*/
    transition: background var(--transition), transform var(--transition) !important;
}

    .start-btn:hover {
        background: #ffb77c !important;
        transform: translateY(-1px);
    }

/* =============================================
   DROPDOWN
   ============================================= */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--clr-bg-header);
    min-width: 680px;
    padding: 28px 30px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    box-shadow: var(--shadow);
    border-radius: 0 0 12px 12px;
    border-top: 3px solid var(--clr-primary-lt);
    animation: dropIn 0.2s ease forwards;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu > li:hover .dropdown,
.menu > li:focus-within .dropdown {
    display: grid;
}

.dropdown-col h4 {
    color: var(--clr-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(196,98,57,0.18);
}

.dropdown-col a {
    display: block;
    color: var(--clr-muted);
    font-size: 13.5px;
    margin-bottom: 9px;
    transition: color var(--transition), transform var(--transition);
    padding-left: 0;
}

    .dropdown-col a:hover {
        color: var(--clr-primary);
        transform: translateX(5px);
    }

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.main-content {
    flex: 1;
    width: 100%;
}


/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: linear-gradient(to bottom, #b85633, var(--clr-primary-dk));
    color: var(--clr-white);
    padding: 60px 5% 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 14px;
    color: var(--clr-white);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.82);
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background var(--transition), transform var(--transition);
    color: var(--clr-white);
    cursor: pointer;
}

    .social-icon:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-3px);
    }

.footer-col h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--clr-accent);
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.75);
    font-size: 13.5px;
    margin-bottom: 11px;
    transition: color var(--transition), transform var(--transition);
}

    .footer-col a::before {
        content: '›';
        font-size: 16px;
        color: var(--clr-primary-lt);
        transition: transform var(--transition);
    }

    .footer-col a:hover {
        color: var(--clr-white);
        transform: translateX(4px);
    }

.footer-contact p {
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255,255,255,0.78);
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.footer-contact .contact-icon {
    color: var(--clr-primary-lt);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Copyright bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

    .footer-bottom a {
        color: rgba(255,255,255,0.6);
        transition: color var(--transition);
    }

        .footer-bottom a:hover {
            color: var(--clr-white);
        }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Large tablets */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dropdown {
        min-width: 560px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .logo {
        font-size: 34px;
    }

    .search-box input {
        width: 200px;
    }

        .search-box input:focus {
            width: 220px;
        }
}

/* Mobile nav breakpoint */
@media (max-width: 768px) {

    /* Header stacks */
    .site-header {
        flex-direction: column;
        text-align: center;
        padding: 16px 5%;
    }

    .header-right {
        justify-content: center;
    }

    .search-box input {
        width: 220px;
    }

        .search-box input:focus {
            width: 240px;
        }

    /* Topbar stacks */
    .topbar {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 12px;
    }

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    /* Nav wraps as sidebar-style overlay */
    .site-nav {
        padding: 0 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-inner {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--clr-primary-dk);
        padding: 70px 24px 30px;
        overflow-y: auto;
        transition: right 0.35s ease;
        z-index: 999;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }

        .nav-inner.open {
            right: 0;
        }

    /* Overlay backdrop */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

        .nav-overlay.active {
            display: block;
        }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

        .menu > li > a,
        .menu > li > button.start-btn {
            padding: 13px 4px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            font-size: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

    .start-btn {
        border-radius: 8px !important;
        margin: 16px 0 0;
        text-align: center;
        justify-content: center !important;
    }

    /* Mobile dropdown */
    .dropdown {
        position: static;
        display: none;
        grid-template-columns: 1fr;
        min-width: unset;
        width: 100%;
        background: rgba(0,0,0,0.2);
        border-radius: 8px;
        padding: 14px 16px;
        margin: 4px 0 8px;
        border-top: none;
        box-shadow: none;
        animation: none;
    }

    .menu > li.mobile-open .dropdown {
        display: grid;
    }

    /* Remove hover on mobile — use JS click */
    .menu > li:hover .dropdown {
        display: none;
    }

    .menu > li.mobile-open .dropdown {
        display: grid;
    }

    .dropdown-col h4 {
        font-size: 11px;
        color: var(--clr-accent);
    }

    .dropdown-col a {
        color: rgba(255,255,255,0.7);
        font-size: 13px;
    }

        .dropdown-col a:hover {
            color: var(--clr-white);
        }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 28px;
    }

    .logo-tagline {
        font-size: 11px;
    }

    .search-box input {
        width: 180px;
    }
}
