/* ========================================
   Frontend Custom CSS - Web Tour & Travel
   ======================================== */

:root {
    --primary-color: #0f766e;
    --secondary-color: #f59e0b;
    --primary-hover: #0d5f58;
    --secondary-hover: #d97706;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-soft: #f3f7f6;
    --surface: #ffffff;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.1);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

main {
    overflow: hidden;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.04em;
}

/* Buttons */
.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.7rem 1.25rem;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover) !important;
    border-color: var(--secondary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: rgba(15, 118, 110, 0.35) !important;
}

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

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Navbar */
.site-navbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.site-navbar .container {
    min-height: 68px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #14b8a6);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.brand-mark-sm {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 700;
    transition: color 0.3s ease;
    border-radius: 999px;
    padding: 0.6rem 0.9rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(15, 118, 110, 0.08);
}

.nav-cta {
    background: var(--text-dark);
    color: #fff !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.nav-cta:hover {
    background: var(--primary-color);
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.home-hero {
    position: relative;
    padding: 4rem 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.32), transparent 15rem),
        radial-gradient(circle at 20% 10%, rgba(20, 184, 166, 0.35), transparent 20rem),
        linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(248, 251, 250, 0.98));
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-weight: 800;
    font-size: 0.85rem;
}

.home-hero h1 {
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.home-hero .lead {
    color: rgba(255, 255, 255, 0.82);
    max-width: 690px;
}

.hero-btn-primary {
    color: var(--primary-color) !important;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-trust-row span {
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}

.hero-trust-row strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
}

.hero-visual-card {
    position: relative;
    min-height: 430px;
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
        url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80') center/cover;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.hero-visual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.68));
}

.hero-visual-icon {
    position: absolute;
    right: 2rem;
    top: 2rem;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    font-size: 2rem;
}

.hero-mini-card {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero-mini-card strong {
    display: block;
    font-size: 1.35rem;
}

.hero-mini-card-top {
    bottom: 6rem;
}

.hero-mini-card-bottom {
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.category-section {
    background: linear-gradient(180deg, rgba(243, 247, 246, 0.85), rgba(255, 255, 255, 0));
}

.category-card {
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow: var(--shadow-card);
}

.category-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(15, 118, 110, 0.1);
}

.tour-card {
    border-radius: 26px;
    background: #fff;
}

.tour-card-img,
.tour-card-placeholder {
    height: 220px !important;
    object-fit: cover;
}

.tour-card-placeholder {
    background: linear-gradient(135deg, #334155, #0f766e);
}

.tour-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.tour-price {
    color: var(--text-muted);
    font-weight: 700;
}

.tour-price span {
    display: block;
    color: var(--primary-color);
    font-size: 1.08rem;
}

.tour-list-header {
    position: relative;
    padding: 4rem 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.24), transparent 16rem),
        linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
}

.tour-list-header h2 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    letter-spacing: -0.055em;
}

.filter-card,
.booking-card {
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

.filter-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.55rem;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary-color);
}

.result-chip {
    display: inline-flex;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    color: var(--text-muted);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.date-pill {
    align-items: center;
    padding: 0.4rem 0.62rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.11);
    color: #047857;
    font-weight: 800;
}

.empty-state {
    border: 1px dashed rgba(15, 23, 42, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
}

.breadcrumb-band {
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tour-detail-section {
    background: linear-gradient(180deg, rgba(243, 247, 246, 0.68), transparent 34rem);
}

.tour-main-media {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #fff;
}

.tour-main-media img {
    height: 470px;
    object-fit: cover;
}

.tour-detail-placeholder {
    height: 380px;
    background: linear-gradient(135deg, #334155, #0f766e);
}

.gallery-thumb {
    height: 76px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 18px;
    opacity: 0.76;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active-thumb {
    transform: translateY(-2px);
    opacity: 1;
    border-color: var(--primary-color) !important;
}

.tour-badge-static {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.82rem;
}

.tour-tabs {
    gap: 0.5rem;
    border-bottom: 0;
}

.tour-tabs .nav-link {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: #fff;
    color: var(--text-muted) !important;
}

.tour-tabs .nav-link.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

.tour-tab-content {
    margin-top: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    line-height: 1.75;
}

.tour-date-option {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tour-date-option:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.24);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.07);
}

.tour-date-option.is-full {
    background: #f8fafc;
    opacity: 0.72;
}

.quota-badge {
    display: inline-flex;
    padding: 0.38rem 0.58rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.quota-available {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.quota-full {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.price-tier-table {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.price-tier-table thead th {
    background: rgba(15, 118, 110, 0.08);
    color: var(--text-dark);
    border-bottom: 0;
}

.price-tier-table td,
.price-tier-table th {
    padding: 0.75rem;
}

/* Card Styles */
.card {
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
}

.card-text {
    color: var(--text-muted);
}

/* Badge */
.badge-primary {
    background-color: var(--primary-color);
}

.badge-secondary {
    background-color: var(--secondary-color);
}

.badge-success {
    background-color: var(--success);
}

.badge-warning {
    background-color: var(--warning);
}

.badge-danger {
    background-color: var(--danger);
}

/* Price Display */
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Tour Details */
.tour-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.tour-gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tour-gallery-img:hover {
    transform: scale(1.05);
}

/* Checkout Form */
.checkout-summary {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.checkout-summary h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkout-summary .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-summary .summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
}

/* Invoice */
.invoice-box {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.invoice-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.invoice-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.countdown-timer {
    background-color: var(--warning);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

/* Footer */
.footer {
    background:
        radial-gradient(circle at 15% 0%, rgba(20, 184, 166, 0.22), transparent 23rem),
        linear-gradient(135deg, #0f172a 0%, #111827 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.035);
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-badges span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 0.82rem;
    font-weight: 700;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .home-hero {
        padding: 2rem 0 3rem;
    }

    .home-hero h1 {
        font-size: 2.35rem;
    }

    .tour-list-header {
        padding: 3rem 0;
    }

    .tour-main-media img,
    .tour-detail-placeholder {
        height: 300px;
    }

    .tour-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
    }

    .tour-tabs .nav-link {
        white-space: nowrap;
    }

    .hero-visual-card {
        min-height: 310px;
        border-radius: 26px;
    }

    .hero-trust-row span {
        flex: 1 1 45%;
    }

    .site-navbar .navbar-collapse {
        padding: 1rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .tour-detail-img {
        height: 250px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .footer-panel {
        padding: 1.25rem;
        border-radius: 20px;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

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

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

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

.border-secondary {
    border-color: var(--secondary-color) !important;
}
