/* Phu Quoc Islands Elementor Widgets Global Styling */

:root {
    --ink: #093d42;
    --deep: #062f33;
    --gold: #c99a51;
    --cream: #fbf6ed;
    --white: #fff;
    --muted: #60777a;
    --line: #e8dcc9;
    --shadow: 0 18px 55px rgba(6, 47, 51, .12);

    --pqi-ink: #093d42;
    --pqi-deep: #062f33;
    --pqi-gold: #c99a51;
    --pqi-cream: #fbf6ed;
    --pqi-white: #fff;
    --pqi-muted: #60777a;
    --pqi-line: #e8dcc9;
    --pqi-shadow: 0 18px 55px rgba(6, 47, 51, .12);
}

* {
    box-sizing: border-box;
}

/* TOPBAR */
.top, .pqi-top {
    background: var(--deep);
    color: #d7e9e8;
    padding: 10px 5vw;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.top b, .pqi-top b {
    color: #e2b86f;
}

/* HERO HEADER */
.hero, .pqi-hero {
    min-height: 92vh;
    position: relative;
    color: #fff;
    background: #08383c;
}

.hero > img, .pqi-hero > img, .pqi-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    opacity: .72;
    z-index: 1;
}

.hero:after, .pqi-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 38, 42, .94), rgba(4, 38, 42, .44) 63%, rgba(4, 38, 42, .18));
    z-index: 1;
    pointer-events: none;
}

.nav, .pqi-nav {
    position: relative;
    z-index: 9999;
    height: 86px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content, .pqi-hero-content {
    position: relative;
    z-index: 2;
    padding: 12vh 5vw 12vh;
    max-width: 950px;
}

.brand, .pqi-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.mark, .pqi-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.53);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.brand strong, .pqi-brand strong {
    display: block;
    letter-spacing: 2px;
}

.brand small, .pqi-brand small {
    opacity: .75;
}

.navlinks, .pqi-navlinks {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 800;
    font-size: 14px;
}

.navlinks a, .pqi-navlinks a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.navlinks a:hover, .pqi-navlinks a:hover {
    opacity: 0.8;
}

/* LANGUAGE SWITCHER */
.lang, .pqi-lang {
    display: flex;
    padding: 4px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.lang button, .pqi-lang button {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    font-size: 12px;
}

.lang button.active, .pqi-lang button.active {
    background: #fff;
    color: var(--ink);
}

.nav-cta, .btn, .pqi-nav-cta, .pqi-btn {
    border-radius: 999px;
    padding: 13px 19px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-cta, .btn.gold, .pqi-nav-cta, .pqi-btn.gold {
    background: var(--gold);
    color: #fff;
}

.btn.outline, .pqi-btn.outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.eyebrow, .pqi-eyebrow {
    color: #e2b86f;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1, .pqi-hero h1 {
    font-size: clamp(46px, 7vw, 82px);
    line-height: .98;
    margin: 20px 0;
    letter-spacing: -2px;
    color: #fff;
}

.hero p, .pqi-hero p {
    font-size: 20px;
    line-height: 1.65;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
}

.actions, .pqi-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* TRUST BAR */
.trust, .pqi-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: -42px 5vw 0;
    position: relative;
    z-index: 4;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.trust div, .pqi-trust div {
    padding: 28px;
    text-align: center;
    border-right: 1px solid var(--pqi-line, #eee);
    border-bottom: none;
}

.trust div:nth-child(4n), .pqi-trust div:nth-child(4n),
.trust div:last-child, .pqi-trust div:last-child {
    border-right: none;
}

.trust strong, .pqi-trust strong {
    display: block;
    font-size: 25px;
    color: var(--ink);
}

.trust span, .pqi-trust span {
    color: var(--muted);
    font-size: 14px;
}

/* SECTION */
.section, .pqi-section {
    padding: 90px 5vw;
}

.head, .pqi-head {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}

.head h2, .pqi-head h2 {
    font-size: clamp(36px, 5vw, 52px);
    margin: 10px 0;
    color: var(--ink);
}

.head p, .pqi-head p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

/* TOUR FILTERS & GRID */
.tour-filters, .pqi-tour-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -18px 0 30px;
}

.tour-filter, .pqi-tour-filter {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 11px 17px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.tour-filter.active, .tour-filter:hover,
.pqi-tour-filter.active, .pqi-tour-filter:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.tour-grid, .pqi-tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card, .pqi-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card.featured, .pqi-card.featured {
    outline: 2px solid var(--gold);
}

.photo, .pqi-photo {
    height: 245px;
    position: relative;
    overflow: hidden;
    background: #0c5a61;
}

.photo img, .pqi-photo img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.card:hover .photo img, .pqi-card:hover .pqi-photo img {
    transform: scale(1.045);
}

.badge, .pqi-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.badge .star, .pqi-badge .star {
    color: var(--gold);
    font-size: 14px;
}

.body, .pqi-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.body h3, .pqi-card-body h3 {
    font-size: 24px;
    margin: 6px 0 10px;
    color: var(--ink);
}

.body p, .pqi-card-body p {
    color: var(--muted);
    line-height: 1.65;
}

/* TOUR FEATURES BADGES FIX */
.features, .pqi-features {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.features > span, .pqi-features > span {
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 7px 9px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.features > span span, .pqi-features > span span {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font: inherit !important;
    color: inherit !important;
}

.prices, .pqi-prices {
    border-top: 1px solid var(--line);
    margin-top: auto;
    padding-top: 17px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-end;
}

.price small, .pqi-price small {
    display: block;
    color: var(--muted);
}

.price strong, .pqi-price strong {
    font-size: 22px;
    color: var(--ink);
}

.book, .pqi-book-btn {
    border: 0;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 11px 15px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

/* STEPS */
.steps, .pqi-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step, .pqi-step {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.step b, .pqi-step b {
    color: var(--gold);
    font-size: 20px;
    display: block;
}

.step h3, .pqi-step h3 {
    font-size: 23px;
    color: var(--ink);
}

/* WHY US */
.why, .pqi-why {
    background: var(--ink);
    color: #fff;
}

.why-grid, .pqi-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.why-grid article, .pqi-why-grid article {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 27px;
    border-radius: 24px;
}

.why-grid p, .pqi-why-grid p {
    color: #d9eeee;
    line-height: 1.65;
}

/* GALLERY 3 COLUMNS ASYMMETRIC GRID & HOVER EFFECTS */
/* Layout controlled via CSS custom properties set by Elementor responsive control */
.gallery, .pqi-gallery {
    display: grid;
    grid-template-columns: var(--pqi-gl-cols, 1.2fr .8fr 1fr);
    grid-template-rows: var(--pqi-gl-rows, 270px 270px);
    gap: 16px;
}

.gallery figure, .pqi-gallery figure {
    margin: 0;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: var(--pqi-img-height, 240px);
}

.gallery figure:nth-child(1), .pqi-gallery figure:nth-child(1) {
    grid-column: var(--pqi-gl-c1-col, 1);
    grid-row: var(--pqi-gl-c1-row, 1 / span 2);
    height: var(--pqi-gl-c1-h, 100%);
}

.gallery figure:nth-child(2), .pqi-gallery figure:nth-child(2) {
    grid-column: var(--pqi-gl-c2-col, 2);
    grid-row: var(--pqi-gl-c2-row, 1);
}

.gallery figure:nth-child(3), .pqi-gallery figure:nth-child(3) {
    grid-column: var(--pqi-gl-c3-col, 2);
    grid-row: var(--pqi-gl-c3-row, 2);
}

.gallery figure:nth-child(4), .pqi-gallery figure:nth-child(4) {
    grid-column: var(--pqi-gl-c4-col, 3);
    grid-row: var(--pqi-gl-c4-row, 1 / span 2);
    height: var(--pqi-gl-c4-h, 100%);
}

.gallery figure img, .pqi-gallery figure img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* HOVER ZOOM IN EFFECT */
.gallery figure:hover img, .pqi-gallery figure:hover img {
    transform: scale(1.08);
}

/* DIAGONAL SHINE FLASH SWEEP EFFECT */
.gallery figure::before, .pqi-gallery figure::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.gallery figure:hover::before, .pqi-gallery figure:hover::before {
    left: 160%;
    transition: left 0.75s ease-in-out;
}

.gallery figcaption, .pqi-gallery figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    background: rgba(8, 47, 51, 0.85);
    color: #fff;
    padding: 8px 11px;
    border-radius: 999px;
    font-weight: 800;
    z-index: 3;
    transition: background 0.3s ease;
}

.gallery figure:hover figcaption, .pqi-gallery figure:hover figcaption {
    background: rgba(201, 154, 81, 0.95);
}

/* FAQ */
.faq, .pqi-faq-list {
    max-width: 920px;
    margin: auto;
}

.faq details, .pqi-faq-list details {
    background: #fff;
    border-radius: 18px;
    margin: 12px 0;
    padding: 21px 24px;
    box-shadow: 0 8px 24px rgba(6, 48, 51, 0.06);
}

.faq summary, .pqi-faq-list summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--ink);
}

.faq p, .pqi-faq-list p {
    color: var(--muted);
    line-height: 1.65;
}

/* CONTACT & BOOKING FORM */
.contact, .pqi-contact {
    background: linear-gradient(135deg, #062f33, #0b6269);
    color: #fff;
}

.contact-box, .pqi-contact-box {
    max-width: 1050px;
    margin: auto;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 45px;
    align-items: start;
}

.contact-box p, .pqi-contact-box p {
    color: #d9eeee;
    line-height: 1.7;
}

.form, .pqi-form {
    background: #fff;
    color: var(--ink);
    padding: 28px;
    border-radius: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.form input, .form select, .form textarea,
.pqi-form input, .pqi-form select, .pqi-form textarea {
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 13px;
    width: 100%;
    color: var(--ink, #1a1a1a) !important;
    font-size: 15px;
    background: #fff;
}

.form input::placeholder, .form textarea::placeholder,
.pqi-form input::placeholder, .pqi-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.35) !important;
    font-weight: 400;
}

.form select, .pqi-form select {
    color: var(--ink, #1a1a1a) !important;
}

.form textarea, .form .total, .form button,
.pqi-form textarea, .pqi-form .total, .pqi-form .pqi-total, .pqi-form button {
    grid-column: 1/-1;
}

.form textarea, .pqi-form textarea {
    min-height: 90px;
}

.total, .pqi-total {
    background: var(--cream);
    padding: 14px;
    border-radius: 13px;
    font-weight: 900;
    color: var(--ink);
}

.form button, .pqi-form button {
    border: 0;
    background: var(--gold);
    color: #fff;
    border-radius: 999px;
    padding: 15px;
    font-weight: 900;
    cursor: pointer;
}

.menu, .pqi-menu-toggle {
    display: none;
}

/* RESPONSIVE & MOBILE / TABLET MENU FIX */
@media(max-width:980px) {
    .navlinks, .pqi-navlinks {
        display: none;
    }

    .menu, .pqi-menu-toggle {
        display: block;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 25px;
        cursor: pointer;
    }

    .nav.active .navlinks, .pqi-nav.active .pqi-navlinks {
        display: flex !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--deep) !important;
        flex-direction: column !important;
        padding: 24px !important;
        z-index: 999999 !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
        border-bottom: 2px solid var(--gold) !important;
    }

    .hero, .pqi-hero,
    .elementor-widget-pqi_hero .hero,
    .elementor-widget-pqi_hero .pqi-hero,
    .elementor-element .hero,
    .elementor-element .pqi-hero {
        min-height: auto !important;
    }

    .hero-content, .pqi-hero-content {
        padding: 60px 5vw 70px;
    }

    .trust, .tour-grid, .steps, .why-grid,
    .pqi-trust, .pqi-tour-grid, .pqi-steps, .pqi-why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery, .pqi-gallery {
        --pqi-gl-cols: 1fr 1fr;
        --pqi-gl-rows: auto;
        --pqi-gl-c1-col: auto;
        --pqi-gl-c1-row: auto;
        --pqi-gl-c1-h: var(--pqi-img-height, 240px);
        --pqi-gl-c2-col: auto;
        --pqi-gl-c2-row: auto;
        --pqi-gl-c3-col: auto;
        --pqi-gl-c3-row: auto;
        --pqi-gl-c4-col: auto;
        --pqi-gl-c4-row: auto;
        --pqi-gl-c4-h: var(--pqi-img-height, 240px);
    }

    .contact-box, .pqi-contact-box {
        grid-template-columns: 1fr;
    }
}

@media(max-width:650px) {
    .top, .pqi-top {
        display: none;
    }

    .nav, .pqi-nav {
        height: 72px;
    }

    .brand small, .pqi-brand small {
        display: none;
    }

    .hero, .pqi-hero,
    .elementor-widget-pqi_hero .hero,
    .elementor-widget-pqi_hero .pqi-hero,
    .elementor-element .hero,
    .elementor-element .pqi-hero {
        min-height: auto !important;
    }

    .hero-content, .pqi-hero-content {
        padding: 45px 5vw 65px;
    }

    .hero p, .pqi-hero p {
        font-size: 17px;
    }

    .trust, .pqi-trust {
        grid-template-columns: 1fr 1fr;
        margin-top: -25px;
    }

    .trust div, .pqi-trust div {
        padding: 20px 14px;
        border-right: 1px solid var(--pqi-line, #eee);
        border-bottom: 1px solid var(--pqi-line, #eee);
    }

    .trust div:nth-child(2n), .pqi-trust div:nth-child(2n) {
        border-right: none !important;
    }

    .trust div:nth-child(3), .pqi-trust div:nth-child(3),
    .trust div:nth-child(4), .pqi-trust div:nth-child(4),
    .trust div:last-child, .pqi-trust div:last-child {
        border-bottom: none !important;
    }

    .tour-grid, .steps, .why-grid,
    .pqi-tour-grid, .pqi-steps, .pqi-why-grid {
        grid-template-columns: 1fr;
    }

    .gallery, .pqi-gallery {
        --pqi-gl-cols: 1fr;
        --pqi-gl-rows: auto;
        --pqi-gl-c1-col: auto;
        --pqi-gl-c1-row: auto;
        --pqi-gl-c1-h: var(--pqi-img-height, 240px);
        --pqi-gl-c2-col: auto;
        --pqi-gl-c2-row: auto;
        --pqi-gl-c3-col: auto;
        --pqi-gl-c3-row: auto;
        --pqi-gl-c4-col: auto;
        --pqi-gl-c4-row: auto;
        --pqi-gl-c4-h: var(--pqi-img-height, 240px);
    }

    .section, .pqi-section {
        padding: 70px 5vw;
    }

    .form, .pqi-form {
        grid-template-columns: 1fr;
    }

    .prices, .pqi-prices {
        align-items: center;
    }
}
