/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== New Header Styles ===== */
.header {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a5fb4, #2989d8);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(26, 95, 180, 0.2);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
}

.header-titles h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.header-titles p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.header-stats {
    display: flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    padding: 5px 0;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Make header thinner on mobile */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-brand {
        flex-direction: column;
        gap: 8px;
    }

    .header-stats {
        width: 100%;
        justify-content: center;
        padding: 6px 10px;
    }

    .back-btn {
        position: static;
        margin-bottom: 10px;
        display: inline-block;
    }
}

/* Filter controls */
.controls-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a5fb4;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-dropdown {
    position: relative;
}

.filter-toggle {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-toggle:hover {
    border-color: #1a5fb4;
}

.filter-toggle.active {
    border-color: #1a5fb4;
    box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.1);
}

.filter-toggle::after {
    content: "▼";
    color: #666;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.filter-toggle.active::after {
    transform: rotate(180deg);
}

.filter-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e3e7;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-options.show {
    display: block;
}

.filter-option {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.8rem;
}

.filter-option:hover {
    background-color: #f8f9fa;
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-checkbox {
    margin: 0;
    cursor: pointer;
}

.filter-option-label {
    flex: 1;
    cursor: pointer;
    font-size: 0.8rem;
}

.selected-count {
    background: #1a5fb4;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.sort-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.sort-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a5fb4;
}

.sort-select {
    padding: 7px 10px;
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
}

.clear-filters {
    background: #6c757d;
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background: #5a6268;
}

/* Package list styles */
.packages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-row {
    background: white;
    border-radius: 10px;
    padding: 15px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.package-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: rgba(26, 95, 180, 0.2);
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #0d652d, #198f44);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 90px;
    box-shadow: 0 2px 8px rgba(13, 101, 45, 0.2);
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.days {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 2px;
}

.package-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    flex: 1;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.group-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1a5fb4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #444;
}

.detail-icon {
    color: #1a5fb4;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.detail-text {
    flex: 1;
}

.hotel-link {
    color: #1a5fb4;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hotel-link:hover {
    text-decoration: underline;
}

.airline-badge {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e1f5fe;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #0d6b56);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn::before {
    content: "📱";
}

/* Hotel detail page styles */
.loading, .error, .not-found, .no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.loading::before {
    content: "⏳";
    display: block;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.error {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.error::before {
    content: "⚠️";
    display: block;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.not-found, .no-results {
    color: #666;
}

.not-found::before {
    content: "🏨";
    display: block;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hotel-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hotel-header {
    background: linear-gradient(135deg, #0d652d, #198f44);
    color: white;
    padding: 25px;
    text-align: center;
}

.hotel-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hotel-city {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.hotel-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hotel-content {
    padding: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #1a5fb4;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a5fb4;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.info-icon {
    color: #1a5fb4;
    font-size: 1rem;
    margin-top: 2px;
}

.info-text {
    flex: 1;
    color: #444;
}

.info-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.info-value {
    color: #666;
    font-size: 0.9rem;
}

.description-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.description-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.images-section {
    margin-bottom: 25px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.hotel-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hotel-image:hover {
    transform: scale(1.02);
}

.image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2.5rem;
}

.contact-section {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Footer styles */
.footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.85rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .package-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .package-details {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .price-section {
        justify-self: center;
    }

    .whatsapp-btn {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .package-details {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .sort-controls {
        justify-content: center;
    }

    .back-btn {
        position: static;
        margin-bottom: 15px;
        display: inline-block;
    }

    .hotel-name {
        font-size: 1.8rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hotel-badges {
        flex-direction: column;
        align-items: center;
    }
}
