/* ============================================================
   AI TRAVEL PLANNER STYLE SHEET
   Premium SaaS & Glassmorphism Design
   ============================================================ */

:root {
    --bg-dark: #0d111b;
    --card-bg: rgba(22, 28, 45, 0.65);
    --card-border: rgba(245, 200, 66, 0.15);
    --gold: #f5c842;
    --gold-hover: #e6a817;
    --teal: #00d4b4;
    --text-muted: #8b95a5;
    --text-white: #e6e8ec;
    --font-inter: 'Inter', sans-serif;
}

/* Page base settings */
body {
    background-color: var(--bg-dark);
    font-family: var(--font-inter);
    color: var(--text-white);
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

/* Background gradient spot lights */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 10% 20%, rgba(245, 200, 66, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 212, 180, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Main Container Layout */
.planner-container {
    max-width: 1200px;
    margin: 120px auto 80px;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Header */
.planner-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.6s ease;
}

.planner-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 180, 0.12);
    border: 1px solid rgba(0, 212, 180, 0.25);
    color: var(--teal);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.planner-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ffffff 30%, #f5c842 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.planner-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Card */
.planner-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
}

.form-group label i {
    color: var(--gold);
    margin-right: 6px;
}

.form-group input, 
.form-group select {
    width: 100%;
    background: rgba(13, 17, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font-inter);
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: rgba(245, 200, 66, 0.4);
    box-shadow: 0 0 15px rgba(245, 200, 66, 0.1);
}

/* Interest Chips */
.interest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.interest-chips .chip {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.interest-chips .chip i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.interest-chips .chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    transform: translateY(-2px);
}

.interest-chips .chip.active {
    background: rgba(245, 200, 66, 0.12);
    border-color: rgba(245, 200, 66, 0.4);
    color: var(--gold);
    box-shadow: 0 5px 15px rgba(245, 200, 66, 0.15);
}

.interest-chips .chip.active i {
    transform: scale(1.1);
}

/* Generate Button */
.btn-generate {
    width: 100%;
    margin-top: 36px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    border: none;
    border-radius: 14px;
    padding: 16px;
    color: #0d1117;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(245, 200, 66, 0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 200, 66, 0.55);
}

.btn-generate:active {
    transform: translateY(-1px);
}

/* AI Orbit Loading Animation */
.loading-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.5s ease;
}

.loader-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ai-orbit {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(245, 200, 66, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.orbit-ring.ring-two {
    width: 80%;
    height: 80%;
    border: 2px solid rgba(0, 212, 180, 0.15);
    border-bottom-color: var(--teal);
    animation: spin 1s linear infinite reverse;
}

.ai-brain-icon {
    font-size: 2.2rem;
    color: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}

.loading-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.loading-card p {
    color: var(--teal);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Output Dashboard */
.plan-dashboard {
    animation: fadeIn 0.8s ease;
}

.dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 20px;
    color: var(--text-white);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

.btn-whatsapp {
    background: #25d366;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

/* Overview Banner */
.overview-banner {
    background: linear-gradient(135deg, rgba(22, 28, 45, 0.9) 0%, rgba(13, 17, 27, 0.95) 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 36px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.banner-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

.banner-meta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--gold);
}

.meta-pills {
    display: flex;
    gap: 10px;
}

.meta-pills span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

.overview-banner p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

/* Main Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Section Cards */
.section-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 12px;
}

.section-title i {
    color: var(--gold);
}

/* Day-by-Day Accordion */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.day-card {
    background: rgba(13, 17, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
}

.day-card:hover {
    border-color: rgba(245, 200, 66, 0.25);
}

.day-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.day-badge {
    background: var(--gold);
    color: #0d1117;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.day-title {
    flex: 1;
    margin: 0 16px;
    font-size: 0.95rem;
    font-weight: 700;
}

.day-toggle-icon {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.day-card.active .day-toggle-icon {
    transform: rotate(180deg);
    color: var(--gold);
}

.day-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 20px;
}

.day-card.active .day-body {
    max-height: 1000px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-white);
}

.activity-list li::before {
    content: '➔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal);
    font-size: 0.85rem;
}

.day-tips {
    background: rgba(0, 212, 180, 0.05);
    border: 1px solid rgba(0, 212, 180, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--teal);
}

/* Hotels List */
.hotels-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hotel-item {
    background: rgba(13, 17, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 18px;
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.hotel-name {
    font-size: 0.96rem;
    font-weight: 700;
    margin: 0;
}

.hotel-type {
    background: rgba(0, 212, 180, 0.12);
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.hotel-price {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.hotel-reason {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Attractions Grid */
.attractions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.attraction-item {
    background: rgba(13, 17, 27, 0.4);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}

.attraction-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.attraction-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Budget Progress Bars */
.budget-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.budget-bar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.budget-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
}

.budget-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.budget-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 100%);
    border-radius: 4px;
}

/* Hide helper class */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Layout Adjustments & Premium Polish */

/* Fixed Premium Glassmorphism Navbar for AI Planner */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(13, 17, 27, 0.88) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 9999 !important; /* Always on top of scrolling lists and floating elements */
    padding: 16px 5% !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure planner container does not shift or hide under the fixed navbar */
.planner-container {
    margin-top: 150px !important;
}

/* Dashboard Controls Styling */
.dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
    animation: fadeIn 0.5s ease;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

/* Intermediate screen breakpoints */
@media (max-width: 1100px) {
    .navbar {
        padding: 14px 4% !important;
    }
    .nav-links {
        gap: 15px !important;
    }
    .nav-links a {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none !important; /* Hide links on tablets to prevent overlapping Logo and Actions */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 5% !important;
    }
    .logo {
        font-size: 1.5rem !important;
    }
    .btn-primary {
        padding: 8px 18px !important;
        font-size: 0.8rem !important;
    }
    .planner-container {
        margin-top: 120px !important;
        padding: 0 16px !important;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .planner-header h1 {
        font-size: 2rem;
    }
    .banner-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-controls {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .btn-back, .btn-whatsapp {
        width: 100% !important;
        justify-content: center !important;
    }
}

