@import url('style.css');

/* City Selection Header */
.city-selection-header {
    position: sticky;
    top: 70px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
}

.city-selector .form-select {
    border: 2px solid var(--maroon);
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 500;
}

.city-selector .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(245, 176, 65, 0.25);
}

/* Default/Empty State */
.default-state {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.empty-state {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 40px;
}

.city-highlights {
    margin-top: 3rem;
}

.city-option {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.city-option:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(245, 176, 65, 0.2);
}

.city-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.1) 0%, rgba(107, 29, 29, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.city-option:hover .city-icon {
    background: linear-gradient(135deg, var(--gold), var(--maroon));
    transform: scale(1.1);
}

.city-icon i {
    font-size: 1.5rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.city-option:hover .city-icon i {
    color: white;
}

.city-option span {
    font-weight: 600;
    color: var(--maroon);
}

/* Dynamic Content Styles */
.city-hero {
    padding: 120px 0 80px;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(107, 29, 29, 0.8) 0%, rgba(74, 20, 20, 0.9) 100%);
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.city-hero .hero-bg {
    background: none;
}

.city-badge {
    display: inline-block;
}

.badge-text {
    background: var(--gold);
    color: var(--maroon);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popularity-badge {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.hero-price .price-amount {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
}

/* Quick Facts */
.fact-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.fact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.1) 0%, rgba(107, 29, 29, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.fact-card:hover .fact-icon {
    background: linear-gradient(135deg, var(--gold), var(--maroon));
    transform: scale(1.1);
}

.fact-icon i {
    font-size: 1.8rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.fact-card:hover .fact-icon i {
    color: white;
}

/* Package Options - Grid Layout */
.package-options-section {
    overflow: hidden;
}

.package-options-container {
    position: relative;
    overflow: hidden;
}

.package-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.package-option-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-option-card.featured {
    border-color: var(--gold);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 176, 65, 0.2);
}

.package-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gold);
    color: var(--maroon);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.package-popularity {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #e74c3c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.7rem;
}

.package-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.package-price {
    margin-top: 1rem;
}

.package-price .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--maroon);
    display: block;
}

.package-price .period {
    color: #666;
    font-size: 0.9rem;
}

.package-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.package-features li:last-child {
    margin-bottom: 0;
}

.package-features i {
    margin-top: 0.2rem;
    flex-shrink: 0;
    color: var(--gold);
}

.package-action {
    flex-shrink: 0;
}

/* Itinerary Timeline */
.itinerary-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--maroon), var(--gold));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-day {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.day-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--maroon));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(245, 176, 65, 0.3);
}

.day-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 4px solid var(--gold);
}

.time-slot {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.time-slot:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.time-slot .time {
    font-weight: 600;
    color: var(--maroon);
    min-width: 80px;
    flex-shrink: 0;
}

.time-slot .activity h5 {
    margin-bottom: 0.5rem;
    color: var(--maroon);
}

.meal-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 176, 65, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 1rem;
}

.meal-indicator i {
    color: var(--gold);
}

/* Pricing Table */
.pricing-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pricing-header {
    background: linear-gradient(135deg, var(--maroon), #8b2c2c);
    color: white;
    padding: 2rem;
    text-align: center;
}

.pricing-body {
    padding: 0;
}

.pricing-row {
    display: flex;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.pricing-row:hover {
    background: #f8f9fa;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-cell {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pricing-cell:first-child {
    justify-content: flex-start;
    text-align: left;
    font-weight: 600;
    color: var(--maroon);
}

.pricing-cell.highlight {
    background: rgba(245, 176, 65, 0.1);
    font-weight: 600;
    color: var(--maroon);
}

/* Additional Info Sections */
.additional-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem 0;
    border-bottom: 2px solid #eee;
}

.info-header h4 {
    margin: 0;
    color: var(--maroon);
}

.info-content {
    padding-top: 1.5rem;
}

.festival-charge-item, .child-policy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.festival-charge-item:last-child, .child-policy-item:last-child {
    border-bottom: none;
}

.charge-amount, .policy-charges {
    font-weight: 600;
    color: var(--maroon);
}

/* Inclusions & Exclusions */
.inclusion-item, .exclusion-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.inclusion-item:last-child, .exclusion-item:last-child {
    border-bottom: none;
}

.inclusion-item i {
    color: var(--gold);
    margin-top: 0.2rem;
}

.exclusion-item i {
    color: #6c757d;
    margin-top: 0.2rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-state i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--maroon);
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* No Packages State */
.no-packages-state {
    text-align: center;
    padding: 8rem 2rem;
}

.no-packages-state i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* City Specific Backgrounds */
.city-hero.chennai::before {
    background-image: url('assets/images/chennai-bg.jpg');
}

.city-hero.trichy::before {
    background-image: url('assets/images/trichy-bg.jpg');
}

.city-hero.madurai::before {
    background-image: url('assets/images/madurai-bg.jpg');
}

.city-hero.coimbatore::before {
    background-image: url('assets/images/coimbatore-bg.jpg');
}

.city-hero.bangalore::before {
    background-image: url('assets/images/bangalore-bg.jpg');
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--maroon);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--maroon);
    color: var(--gold);
    transform: translateY(-3px);
}

/* ==================== */
/* MOBILE RESPONSIVE CSS */
/* ==================== */

@media (max-width: 768px) {
    /* City Selection Header */
    .city-selection-header {
        top: 66px;
        padding: 1rem 0;
    }

    .city-selection-header .row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .city-selection-header h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .city-selector .form-select {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Hero Section */
    .city-hero {
        padding: 100px 0 40px;
        text-align: center;
        min-height: auto;
    }

    .city-hero .row {
        flex-direction: column-reverse;
    }

    .city-hero-image {
        margin-bottom: 2rem;
        padding-top: 0;
    }

    .city-hero-image img {
        width: 100%;
        object-fit: cover;
    }

    .city-badge {
        margin-bottom: 1rem;
    }

    .badge-text {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .city-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .city-hero .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .stat-item {
        text-align: center;
    }

    .hero-price .price-amount {
        font-size: 2rem;
    }

    .hero-actions {
        margin-top: 1.5rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }

    /* Quick Facts */
    .quick-facts .row {
        margin: 0 -10px;
    }

    .fact-card {
        padding: 1.5rem 0.75rem;
        margin: 0 10px;
    }

    .fact-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .fact-icon i {
        font-size: 1.3rem;
    }

    .fact-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .fact-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Package Options */
    .package-options-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .package-option-card {
        padding: 1.5rem;
    }

    .package-option-card.featured {
        transform: none;
    }

    .package-badge {
        top: -8px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .package-popularity {
        top: -8px;
        left: 15px;
        padding: 0.3rem 0.7rem;
        font-size: 0.6rem;
    }

    .package-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .package-header h4 {
        font-size: 1.2rem;
    }

    .package-price .price {
        font-size: 1.5rem;
    }

    .package-features {
        margin-bottom: 1.5rem;
    }

    .package-features li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    /* Itinerary Timeline */
    .itinerary-timeline {
        max-width: 100%;
    }

    .itinerary-timeline::before {
        left: 25px;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-day {
        flex-direction: column;
        gap: 1rem;
    }

    .day-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        align-self: flex-start;
    }

    .day-content {
        padding: 1.5rem;
        margin-left: 0;
    }

    .day-content h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .time-slot {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .time-slot .time {
        min-width: auto;
        font-size: 0.9rem;
    }

    .time-slot .activity h5 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .time-slot .activity p {
        font-size: 0.9rem;
    }

    .meal-indicator {
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: flex-start;
    }

    /* Pricing Table */
    .pricing-row {
        flex-direction: column;
    }

    .pricing-cell {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .pricing-cell:last-child {
        border-bottom: none;
    }

    /* Additional Info */
    .additional-info {
        padding: 1.5rem;
    }

    .festival-charge-item, .child-policy-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Inclusions & Exclusions */
    .inclusions .row {
        flex-direction: column;
        gap: 2rem;
    }

    .inclusion-list,
    .exclusion-list {
        font-size: 0.9rem;
    }

    .inclusion-item,
    .exclusion-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    /* CTA Section */
    .city-cta {
        padding: 3rem 0;
    }

    .city-cta h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .city-cta .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Loading, Error, No Packages States */
    .loading-state,
    .error-state,
    .no-packages-state {
        padding: 3rem 1rem;
    }

    .loading-state i,
    .error-state i,
    .no-packages-state i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .loading-state h3,
    .error-state h3,
    .no-packages-state h3 {
        font-size: 1.3rem;
    }

    /* Default State */
    .default-state {
        padding: 2rem 0;
    }

    .empty-state h2 {
        font-size: 1.5rem;
    }

    .empty-state .lead {
        font-size: 1rem;
    }

    .city-highlights {
        margin-top: 2rem;
    }

    .city-option {
        padding: 1rem 0.5rem;
    }

    .city-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .city-icon i {
        font-size: 1.2rem;
    }

    .city-option span {
        font-size: 0.9rem;
    }

    /* Back to Top Button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .city-hero h1 {
        font-size: 1.7rem;
    }

    .hero-price .price-amount {
        font-size: 1.7rem;
    }

    .package-option-card {
        padding: 1.25rem;
    }

    .package-header h4 {
        font-size: 1.1rem;
    }

    .package-price .price {
        font-size: 1.3rem;
    }

    .day-content {
        padding: 1.25rem;
    }

    .fact-card {
        padding: 1.25rem 0.5rem;
    }

    .city-selection-header {
        padding: 0.75rem 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet specific styles */
    .package-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .city-hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .package-option-card:hover {
        transform: none;
    }

    .fact-card:hover {
        transform: none;
    }

    .city-option:hover {
        transform: none;
        border-color: transparent;
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .city-hero::before {
        background-size: cover;
    }
}

/* Print styles */
@media print {
    .city-selection-header,
    .hero-actions,
    .cta-buttons,
    .back-to-top {
        display: none;
    }

    .city-hero {
        background: white !important;
        color: black !important;
    }

    .city-hero h1,
    .city-hero .text-gold {
        color: black !important;
    }
}