/* Dynamic star color via Customizer */
.text-rating-star { color: var(--npt-star-color, #FFC107) !important; }

/* Material Symbols display fix */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* Glassmorphism nav */
.npt-glass-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Tour card hover lift */
.tour-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tour-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(61, 122, 114, 0.12);
}

/* Subtle card shadow */
.tour-card-shadow {
    box-shadow: 0 4px 20px rgba(29, 53, 87, 0.05);
}

/* Hero section */
.npt-hero {
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.npt-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.npt-hero:hover .npt-hero-bg {
    transform: scale(1.0);
}
.npt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent 40%, rgba(0,0,0,0.6));
}

/* Scroll animation */
.npt-fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.npt-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Star rating interactive */
.npt-star-rating {
    display: flex;
    gap: 4px;
    cursor: pointer;
}
.npt-star-rating .npt-star {
    font-size: 28px;
    color: #bfc7d1;
    transition: color 0.15s ease, transform 0.15s ease;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.npt-star-rating .npt-star.active,
.npt-star-rating .npt-star.hover {
    color: var(--npt-star-color, #FFC107);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.npt-star-rating .npt-star:hover {
    transform: scale(1.15);
}

/* Bento gallery grid (legacy, unused) */
.npt-bento-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 12px;
}
.npt-bento-main { grid-column: span 2; grid-row: span 2; }

/* Tour single gallery — Airbnb-style bento, adapts to image count */
.npt-gallery-grid {
    display: grid;
    gap: 5px;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
}
.npt-gallery-cell {
    overflow: hidden;
    position: relative;
    background: #e9eeea;
}
.npt-gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 1 image: full width */
.npt-gallery-grid[data-count="1"] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* 2 images: main (3fr) + 1 thumb (2fr) */
.npt-gallery-grid[data-count="2"] {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr;
}
.npt-gallery-grid[data-count="2"] .npt-gallery-main  { grid-column: 1; grid-row: 1; }
.npt-gallery-grid[data-count="2"] .npt-gallery-thumb-2 { grid-column: 2; grid-row: 1; }

/* 3 images: main (left, full height) + 2 thumbs stacked right */
.npt-gallery-grid[data-count="3"] {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
}
.npt-gallery-grid[data-count="3"] .npt-gallery-main   { grid-column: 1; grid-row: 1 / span 2; }
.npt-gallery-grid[data-count="3"] .npt-gallery-thumb-2 { grid-column: 2; grid-row: 1; }
.npt-gallery-grid[data-count="3"] .npt-gallery-thumb-3 { grid-column: 2; grid-row: 2; }

/* 4 images: main left + 2 thumbs top + 1 wide thumb bottom (spans both right cols) */
.npt-gallery-grid[data-count="4"] {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.npt-gallery-grid[data-count="4"] .npt-gallery-main   { grid-column: 1; grid-row: 1 / span 2; }
.npt-gallery-grid[data-count="4"] .npt-gallery-thumb-2 { grid-column: 2; grid-row: 1; }
.npt-gallery-grid[data-count="4"] .npt-gallery-thumb-3 { grid-column: 3; grid-row: 1; }
.npt-gallery-grid[data-count="4"] .npt-gallery-thumb-4 { grid-column: 2 / span 2; grid-row: 2; }

/* 5 images: full Airbnb 2x2 right — no empty cells */
.npt-gallery-grid[data-count="5"] {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.npt-gallery-grid[data-count="5"] .npt-gallery-main   { grid-column: 1; grid-row: 1 / span 2; }
.npt-gallery-grid[data-count="5"] .npt-gallery-thumb-2 { grid-column: 2; grid-row: 1; }
.npt-gallery-grid[data-count="5"] .npt-gallery-thumb-3 { grid-column: 3; grid-row: 1; }
.npt-gallery-grid[data-count="5"] .npt-gallery-thumb-4 { grid-column: 2; grid-row: 2; }
.npt-gallery-grid[data-count="5"] .npt-gallery-thumb-5 { grid-column: 3; grid-row: 2; }

/* Mobile */
@media (max-width: 640px) {
    .npt-gallery-grid { height: auto; border-radius: 12px; }
    .npt-gallery-grid[data-count="1"] { height: 260px; }
    .npt-gallery-grid:not([data-count="1"]) {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 220px 150px !important;
    }
    .npt-gallery-grid:not([data-count="1"]) .npt-gallery-main  { grid-column: 1 / span 2 !important; grid-row: 1 !important; }
    .npt-gallery-grid:not([data-count="1"]) .npt-gallery-thumb-2 { grid-column: 1 !important; grid-row: 2 !important; }
    .npt-gallery-grid:not([data-count="1"]) .npt-gallery-thumb-3 { grid-column: 2 !important; grid-row: 2 !important; }
    .npt-gallery-grid:not([data-count="1"]) .npt-gallery-thumb-4,
    .npt-gallery-grid:not([data-count="1"]) .npt-gallery-thumb-5 { display: none !important; }
}

/* Booking counter buttons */
.npt-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #bfc7d1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: transparent;
}
.npt-counter-btn:hover:not(:disabled) {
    border-color: #005d90;
    background: rgba(0, 93, 144, 0.08);
}
.npt-counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Mobile menu — controlled by .hidden Tailwind class only; no display override here */
#npt-mobile-menu a {
    text-decoration: none;
    transition: color 0.2s;
}

/* Booking form inputs — force dark text (Tailwind forms CDN override) */
#npt-booking-form input,
#npt-booking-form textarea,
#npt-booking-form select {
    color: #181c20;
}

/* Form states */
.npt-input {
    transition: border-color 0.2s, box-shadow 0.2s;
}
.npt-input:focus {
    border-color: #005d90;
    box-shadow: 0 0 0 3px rgba(0, 93, 144, 0.15);
    outline: none;
}
.npt-input.error {
    border-color: #ba1a1a;
    box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.1);
}
.npt-input.success {
    border-color: #00677d;
}

/* Alert message */
.npt-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
    display: none;
}
.npt-alert.success {
    display: block;
    background: #e6f0f7;
    color: #005d90;
    border: 1px solid #005d9033;
}
.npt-alert.error {
    display: block;
    background: #ffdad6;
    color: #93000a;
    border: 1px solid #ba1a1a33;
}

/* Spinner */
.npt-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: npt-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes npt-spin {
    to { transform: rotate(360deg); }
}

/* FAQ accordion arrow */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }
details[open] .npt-accordion-arrow {
    transform: rotate(180deg);
}
.npt-accordion-arrow {
    transition: transform 0.2s ease;
}

/* Scrollbar for review photo strip */
.npt-scrollbar::-webkit-scrollbar { height: 4px; }
.npt-scrollbar::-webkit-scrollbar-track { background: #f1f4f9; border-radius: 2px; }
.npt-scrollbar::-webkit-scrollbar-thumb { background: #bfc7d1; border-radius: 2px; }

/* Booking sidebar success state */
#npt-booking-form.submitted {
    pointer-events: none;
    opacity: 0.6;
}

/* Page hero (about/contact) */
.npt-page-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.npt-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 29, 50, 0.55);
}
.npt-page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

/* Itinerary timeline */
.npt-itinerary-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 20px;
}
.npt-itinerary-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #bfc7d1;
}
.npt-itinerary-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #cde5ff;
    border: 2px solid #005d90;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #005d90;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .npt-hero { min-height: 500px; }
    .npt-bento-gallery { grid-template-columns: 1fr; height: auto; }
    .npt-bento-main { grid-column: span 1; grid-row: span 1; height: 250px; }
}

/* Hero slider */
.npt-hero-slides { position:absolute; inset:0; }
.npt-slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.2s ease; }
.npt-slide.active { opacity:1; }
.npt-hero-overlay { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.55) 100%); z-index:1; }
.npt-slide-dots { display:flex; justify-content:center; gap:0.5rem; }
.npt-dot { width:10px; height:10px; border-radius:50%; border:2px solid rgba(255,255,255,0.7); background:transparent; cursor:pointer; padding:0; transition:background 0.3s, transform 0.3s; }
.npt-dot.active { background:#ffffff; transform:scale(1.2); }

/* Logo size constraint */
.npt-glass-nav .custom-logo-link { display: flex; align-items: center; }
.npt-glass-nav .custom-logo { height: 56px; width: auto; max-width: 200px; object-fit: contain; }

/* Nav menu reset */
.npt-glass-nav ul, .npt-glass-nav li { list-style: none; margin: 0; padding: 0; }

/* Static nav — no admin-bar offset needed */

/* Review carousel */
.npt-review-slides { will-change: transform; }
.npt-rdot { cursor: pointer; }
.npt-rdot.npt-rdot-active { background: #005d90; border-color: #005d90; transform: scale(1.3); }
.npt-review-carousel { padding: 0 1rem; }
@media (min-width: 640px) { .npt-review-carousel { padding: 0 2rem; } }

/* === LUXURY PREMIUM UPGRADE === */

/* Teal brand color */
:root {
  --npt-teal-brand: #3D7A72;
  --npt-teal-light: #5A9D94;
  --npt-teal-dark: #2A5A54;
  --npt-forest-deep: #162F2B;
  --npt-forest-light: #1E3D38;
}

/* Premium card — override tour-card-shadow and hover */
.tour-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(22, 47, 43, 0.14), 0 4px 16px rgba(61, 122, 114, 0.12);
}
.tour-card-shadow {
    box-shadow: 0 2px 16px rgba(22, 47, 43, 0.06);
}

/* Teal CTA button — class for inline style override */
.npt-btn-teal {
    background: linear-gradient(135deg, #3D7A72 0%, #5A9D94 100%);
    color: #ffffff;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(61, 122, 114, 0.35);
}
.npt-btn-teal:hover {
    background: linear-gradient(135deg, #2A5A54 0%, #3D7A72 100%);
    box-shadow: 0 6px 20px rgba(61, 122, 114, 0.5);
    transform: translateY(-1px);
}

/* Premium nav */
.npt-glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Luxury hero overlay */
.npt-hero-overlay-luxury {
    background: linear-gradient(
        to bottom,
        rgba(22, 47, 43, 0.55) 0%,
        rgba(22, 47, 43, 0.15) 45%,
        rgba(22, 47, 43, 0.65) 100%
    );
}

/* Premium review card */
.npt-review-card-luxury {
    background: #FDFCFB;
    border: 1px solid rgba(61, 122, 114, 0.15);
}

/* Teal itinerary dot */
.npt-itinerary-dot-teal {
    background: linear-gradient(135deg, #5A9D94, #3D7A72);
    border-color: #3D7A72;
    color: #ffffff;
}

/* Teal carousel dots */
.npt-rdot.npt-rdot-active {
    background: #3D7A72;
    border-color: #3D7A72;
}

/* Premium section divider */
.npt-divider-teal {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #3D7A72, #5A9D94);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Luxury footer */
.npt-footer-luxury {
    background: #162F2B;
    color: rgba(255, 255, 255, 0.75);
}
.npt-footer-luxury h3,
.npt-footer-luxury h4 { color: rgba(255, 255, 255, 0.9); }
.npt-footer-luxury a { color: rgba(255, 255, 255, 0.6); }
.npt-footer-luxury a:hover { color: #5A9D94; }
.npt-footer-luxury .npt-footer-label { color: rgba(255, 255, 255, 0.4); }
.npt-footer-luxury .npt-footer-border { border-color: rgba(255, 255, 255, 0.1); }

/* Review carousel dots override */
.npt-rdot {
    border-color: rgba(61, 122, 114, 0.35);
}

/* ── Mobile responsive fixes ── */
@media (max-width: 767px) {
    /* Hero: reduce min-height on small screens */
    .npt-hero-section { min-height: 80vh !important; }

    /* Nav: ensure Book Now + hamburger fit */
    .npt-glass-nav .custom-logo { height: 40px; max-width: 140px; }

    /* Mobile menu: clean premium dark styling */
    #npt-mobile-menu {
        background: #ffffff;
        border-top: 2px solid rgba(61,122,114,0.15);
    }

    /* Gallery: mobile layout — main full-width top, 2 thumbs below */
    .npt-gallery-grid {
        height: 320px !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 3fr 2fr !important;
    }
    .npt-gallery-grid .npt-gallery-main {
        grid-column: 1 / span 2 !important;
        grid-row: 1 !important;
    }
    .npt-gallery-grid .npt-gallery-thumb-2 { grid-column: 1 !important; grid-row: 2 !important; }
    .npt-gallery-grid .npt-gallery-thumb-3 { grid-column: 2 !important; grid-row: 2 !important; }
    /* Hide extra thumbs on mobile — 2 thumbs enough */
    .npt-gallery-grid .npt-gallery-thumb-4,
    .npt-gallery-grid .npt-gallery-thumb-5 { display: none !important; }
    /* 1 image: full height */
    .npt-gallery-grid[data-count="1"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr !important;
    }
    /* 2 images: side by side single row */
    .npt-gallery-grid[data-count="2"] {
        grid-template-columns: 3fr 2fr !important;
        grid-template-rows: 1fr !important;
    }
    .npt-gallery-grid[data-count="2"] .npt-gallery-main {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    .npt-gallery-grid[data-count="2"] .npt-gallery-thumb-2 {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    /* Page hero: smaller on mobile */
    .npt-page-hero { height: 220px; }

    /* About section: reduce image gap on mobile */
    .npt-about-image { margin-bottom: 0; }

    /* Reviews heading: smaller on mobile */
    .npt-reviews-section h2 { font-size: 1.5rem; }

    /* Booking form: full touch targets */
    #npt-booking-form input,
    #npt-booking-form textarea,
    #npt-booking-form select {
        font-size: 16px; /* prevents iOS zoom */
        padding: 0.75rem 1rem;
    }

    /* Single tour: reduce body padding */
    .npt-single-tour-main { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}

@media (max-width: 480px) {
    /* Extra small: hero title clamp floor */
    .npt-hero-section h1 { font-size: clamp(2rem, 9vw, 3rem) !important; }

    /* Nav Book Now: show only icon on tiny screens */
    .npt-nav-book-now { padding-left: 0.875rem; padding-right: 0.875rem; }

    /* Footer CTA buttons: full width on tiny screens */
    .npt-footer-cta-buttons { flex-direction: column; }
    .npt-footer-cta-buttons a { width: 100%; justify-content: center; }
}
