/* style.css - Light Luxury Travel Theme
   AyubowanDestination.lk */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-dark: #fbfbf9; /* Ivory/Cream luxury background */
    --bg-card: #ffffff; /* Pure white cards */
    --bg-card-hover: #f6f5f0;
    --primary-gold: #b39260; /* Muted darker gold for light contrast */
    --primary-gold-hover: #96784b;
    --text-white: #1e293b; /* Primary dark text */
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(179, 146, 96, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-luxury {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-hover);
}

/* Premium Buttons */
.btn-gold {
    background-color: var(--primary-gold);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
    padding: 12px 30px;
    border-radius: 4px;
    border: 1px solid var(--primary-gold);
    transition: var(--transition);
}
.btn-gold:hover, .btn-gold:focus {
    background-color: transparent;
    color: var(--primary-gold);
    box-shadow: 0 5px 15px rgba(179, 146, 96, 0.2);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--primary-gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
    padding: 12px 30px;
    border-radius: 4px;
    border: 1px solid var(--primary-gold);
    transition: var(--transition);
}
.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(179, 146, 96, 0.15);
}

/* Navbar */
.navbar-luxury {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}
.navbar-luxury .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dark) !important;
}
.navbar-luxury .navbar-brand span {
    color: var(--primary-gold);
}
.navbar-luxury .nav-link {
    color: var(--text-white) !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin: 0 15px;
    transition: var(--transition);
    position: relative;
}
.navbar-luxury .nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--primary-gold);
    transition: var(--transition);
}
.navbar-luxury .nav-link:hover:after,
.navbar-luxury .nav-link.active:after {
    width: 100%;
}
.navbar-luxury .nav-link:hover {
    color: var(--primary-gold) !important;
}

/* Hero Section */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.65)), url('../images/hero.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    text-align: center;
    z-index: 10;
}
.hero-content .text-white {
    color: var(--text-dark) !important;
}
.hero-subtitle {
    color: var(--primary-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
}
.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--text-dark);
}
.hero-desc {
    font-size: 18px;
    color: #334155;
    max-width: 700px;
    margin: 0 auto 35px auto;
    font-weight: 400;
}

/* Section Common Styling */
.section-padding {
    padding: 100px 0;
}
.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}
.section-subtitle {
    color: var(--primary-gold);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-gold);
}

/* Redefine bg-dark class as light/ivory background */
.bg-dark {
    background-color: #faf9f5 !important;
    color: var(--text-white) !important;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p {
    color: var(--text-dark) !important;
}
.text-white-50 {
    color: var(--text-muted) !important;
}
.text-gold {
    color: var(--primary-gold) !important;
}

/* Glassmorphism Card base */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}
.glass-card:hover {
    border-color: rgba(179, 146, 96, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Featured Destinations Showcase */
.destination-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 380px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.destination-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 30%, rgba(255, 255, 255, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: var(--transition);
}
.destination-card:hover img {
    transform: scale(1.1);
}
.destination-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: rgba(179, 146, 96, 0.4);
}
.destination-card-overlay .text-white {
    color: var(--text-dark) !important;
}
.dest-cat {
    color: var(--primary-gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}
.dest-title {
    font-size: 22px;
    margin: 5px 0 10px 0;
}
.dest-desc {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}
.destination-card:hover .dest-desc {
    opacity: 1;
    max-height: 80px;
}

/* Why Choose Us Cards */
.choice-card {
    text-align: center;
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
    cursor: pointer;
}
.choice-card * {
    pointer-events: none;
}
.choice-card .form-check,
.choice-card .form-check-input,
.choice-card .form-check-label {
    pointer-events: auto;
}
.real-radio-gold {
    accent-color: var(--primary-gold);
    cursor: pointer;
    transform: scale(1.15);
}
.form-check-label {
    cursor: pointer;
}
.choice-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--glass-border);
}
.choice-card.selected {
    border-color: var(--primary-gold) !important;
    background-color: var(--bg-card-hover) !important;
    box-shadow: 0 0 15px rgba(179, 146, 96, 0.25) !important;
}
.choice-card.selected .select-btn {
    background-color: var(--primary-gold) !important;
    color: #ffffff !important;
}
.choice-icon {
    font-size: 40px;
    color: var(--primary-gold);
    margin-bottom: 20px;
    display: inline-block;
}

/* Redefine table-dark as clean light tables */
.table-dark {
    --bs-table-bg: #ffffff !important;
    --bs-table-color: var(--text-white) !important;
    --bs-table-striped-bg: #f8fafc !important;
    --bs-table-hover-bg: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.table-dark th {
    color: var(--primary-gold) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.table-dark td {
    color: var(--text-white) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.input-group-text.bg-dark {
    background-color: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--primary-gold) !important;
}

/* Footer Section */
.footer-luxury {
    background-color: #faf9f5;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px 0 30px 0;
}
.footer-logo {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.footer-logo span {
    color: var(--primary-gold);
}
.footer-links h5 {
    color: var(--primary-gold);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}
.footer-links ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-white);
    margin-right: 10px;
    transition: var(--transition);
    text-decoration: none;
}
.social-icon:hover {
    background-color: var(--primary-gold);
    color: #ffffff;
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
    color: var(--text-muted);
}

/* SMART TOUR PLANNER - STEPS DESIGN */
.planner-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.planner-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1;
}
.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-weight: 600;
    line-height: 36px;
    margin: 0 auto 10px auto;
    transition: var(--transition);
}
.step-item.active .step-num {
    background-color: var(--bg-dark);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(179, 146, 96, 0.15);
}
.step-item.completed .step-num {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #ffffff;
}
.step-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: var(--transition);
}
.step-item.active .step-title {
    color: var(--primary-gold);
    font-weight: 500;
}

/* Form Inputs Styling */
.form-luxury .form-label {
    color: var(--primary-gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-luxury .form-control, .form-luxury .form-select {
    background-color: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    color: var(--text-dark);
    padding: 12px 15px;
    transition: var(--transition);
}
.form-luxury .form-control:focus, .form-luxury .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-gold);
    box-shadow: 0 0 8px rgba(179, 146, 96, 0.15);
    color: var(--text-dark);
}

/* Interactive Destination Cards grid */
.dest-select-card {
    cursor: pointer;
    background-color: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
    height: 100%;
}
.dest-select-card img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.dest-select-card-body {
    padding: 20px;
}
.dest-select-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.dest-select-card.selected {
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(179, 146, 96, 0.2);
}
.dest-badge-selected {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-gold);
    color: #ffffff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
    z-index: 10;
}
.dest-select-card.selected .dest-badge-selected {
    opacity: 1;
    transform: scale(1);
}
.dest-select-card .visit-duration {
    font-size: 12px;
    color: var(--primary-gold);
}

/* Visual Map & Timeline */
#map-container {
    height: 450px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    z-index: 5;
}
.itinerary-timeline {
    border-left: 2px dashed rgba(179, 146, 96, 0.4);
    padding-left: 30px;
    position: relative;
    margin-left: 15px;
}
.timeline-marker {
    position: absolute;
    left: -9px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-gold);
}
.timeline-item {
    position: relative;
    margin-bottom: 25px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item h5 {
    color: var(--primary-gold);
    margin-bottom: 5px;
}
.timeline-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Selection Map & Custom Markers */
.sticky-top-map {
    position: sticky;
    top: 100px;
    z-index: 4;
}
@media (max-width: 991.98px) {
    .sticky-top-map {
        position: static;
        margin-top: 20px;
    }
}
.custom-div-icon {
    background: transparent !important;
    border: none !important;
}
.custom-marker {
    position: relative;
    width: 30px;
    height: 42px;
}
.custom-marker .marker-pin {
    font-size: 32px;
    color: #94a3b8; /* Muted slate for unselected */
    text-align: center;
    position: relative;
    transition: var(--transition);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
}
.custom-marker .marker-pin:hover {
    color: var(--primary-gold-hover);
    transform: scale(1.1);
}
.custom-marker.selected .marker-pin {
    color: var(--primary-gold); /* Gold for selected */
    filter: drop-shadow(0 4px 10px rgba(179, 146, 96, 0.4));
}
.custom-marker .marker-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #22c55e; /* Green for selected checkmark */
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Print View Stylesheet override for Quotations */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }
    .no-print {
        display: none !important;
    }
    .print-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .text-muted, .timeline-meta {
        color: #666 !important;
    }
    .btn, .navbar, footer {
        display: none !important;
    }
    #map-container {
        display: none !important;
    }
    .print-header {
        border-bottom: 2px solid #000 !important;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .navbar-luxury {
        padding: 15px 0;
    }
    .navbar-collapse {
        background: #ffffff;
        border: 1px solid rgba(179, 146, 96, 0.15);
        border-radius: 8px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }
    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }
    .navbar-nav .nav-link {
        margin: 0;
        padding: 10px 0;
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
    .navbar-nav .btn-gold, .navbar-nav .btn-outline-gold {
        width: 100%;
        display: block;
        margin-top: 10px;
        margin-left: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .hero-banner {
        height: auto;
        padding: 120px 0 80px 0;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-desc {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .hero-actions .btn-gold, .hero-actions .btn-outline-gold {
        display: block !important;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 15px;
        text-align: center;
    }
    .section-title-wrapper {
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 2rem;
    }
    #map-container {
        height: 320px;
    }
    .glass-card {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .step-title {
        display: none;
    }
    .planner-steps::before {
        top: 20px;
    }
    .destination-card {
        height: 320px;
    }
}
