/* ==========================================
   STAY HATCH - DEALS PAGE
   File: deals.css
   Theme: Warm Amber/Yellow
   Note: Navbar styles are handled by style.css (shared navbar)
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

body {
    background: #F8FAFC;
    color: #0F172A;
    min-height: 100vh;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.deals-hero {
    position: relative;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    padding: 40px 32px 50px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.35) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text { flex: 1; max-width: 620px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    border-left: 3px solid #FFFFFF;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-text h1 .accent {
    color: #FEF3C7;
    font-style: italic;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 44px;
}

.hero-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 30px;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 500px;
}

.hero-right { display: flex; align-items: center; gap: 20px; }

.discount-badge {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 60%, #FCD34D 100%);
    border-radius: 16px;
    transform: rotate(-6deg);
    padding: 5px;
    box-shadow: 0 16px 40px rgba(180, 83, 9, 0.5);
    animation: floatBadge 3s ease-in-out infinite;
    position: relative;
    flex-shrink: 0;
}

@keyframes floatBadge {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-6px); }
}

.discount-badge-inner {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(180, 83, 9, 0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #B45309;
}

.upto { font-size: 9px; font-weight: 700; letter-spacing: 2px; }
.percent { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.off { font-size: 14px; font-weight: 800; letter-spacing: 3px; }

.hero-script {
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-script::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transform: rotate(-2deg);
}

/* ==========================================
   DEALS CONTENT
   ========================================== */
.deals-content {
    background: #F8FAFC;
    padding: 30px 32px 60px;
}

.deals-wrapper { max-width: 1400px; margin: 0 auto; }

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 30px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.chip:hover { border-color: #F59E0B; color: #B45309; }
.chip.active {
    background: #F59E0B;
    border-color: #F59E0B;
    color: #FFFFFF;
    font-weight: 700;
}
.chip i { font-size: 12px; }

/* Section Heading */
.deals-heading {
    margin-bottom: 20px;
}

.deals-heading h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.deals-heading h2 span { color: #D97706; }
.deals-heading p { font-size: 13px; color: #64748B; }

/* ==========================================
   DEALS GRID
   ========================================== */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ==========================================
   DEAL CARD
   ========================================== */
.deal-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #E2E8F0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.22);
    border-color: #FDE68A;
}

.deal-image {
    height: 200px;
    width: 100%;
    background-color: #FEF3C7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.deal-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.deal-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #0F172A;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.deal-rating i { color: #F59E0B; font-size: 11px; }

.deal-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.deal-tag i { font-size: 9px; }

.deal-discount-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.deal-discount-badge i { font-size: 10px; color: #FEF3C7; }

.deal-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deal-hotel-name {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.deal-couple-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FDF2F8;
    color: #BE185D;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.deal-couple-badge i { font-size: 9px; }

.deal-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
    margin-bottom: 14px;
}

.deal-location i { color: #F59E0B; font-size: 12px; }

.deal-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 16px;
    border-top: 1px dashed #FEF3C7;
    margin-top: auto;
    gap: 12px;
}

.deal-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.original-price {
    font-size: 12px;
    color: #94A3B8;
    text-decoration: line-through;
    font-weight: 500;
}

.deal-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.deal-price {
    font-size: 24px;
    font-weight: 900;
    color: #B45309;
    letter-spacing: -0.8px;
    line-height: 1;
}

.per-night {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 500;
}

.deal-book-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.deal-book-btn:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.55);
}

.deal-book-btn i { font-size: 11px; }

/* ==========================================
   LOADING & EMPTY STATES
   ========================================== */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748B;
}

.loading-state i {
    font-size: 28px;
    color: #F59E0B;
    margin-bottom: 12px;
    display: block;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 2px dashed #E2E8F0;
}

.empty-state i {
    font-size: 42px;
    color: #CBD5E1;
    margin-bottom: 14px;
    display: block;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 18px;
}

.empty-state .btn-back-home {
    display: inline-block;
    background: #F59E0B;
    color: #FFFFFF;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #FFFFFF;
    padding: 24px 32px;
    border-top: 1px solid #E2E8F0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-content p {
    color: #64748B;
    font-size: 13px;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
    color: #64748B;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover { color: #D97706; }

/* ==========================================
   RESPONSIVE - TABLET (max-width: 900px)
   ========================================== */
@media (max-width: 900px) {
    .deals-hero { padding: 32px 20px 40px; }
    .hero-content { flex-direction: column; text-align: center; gap: 28px; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: 30px; }
    .hero-text h1 .accent { font-size: 36px; }
    .hero-tagline { font-size: 26px; }
    .hero-desc { max-width: 100%; }
    .hero-right { flex-direction: column; gap: 16px; }

    .deals-content { padding: 24px 20px 40px; }
    .deals-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ==========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {

    .deals-hero { padding: 28px 16px 36px; }

    .hero-badge {
        font-size: 10px;
        padding: 5px 12px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }

    .hero-text h1 {
        font-size: 24px;
        letter-spacing: -0.5px;
        margin-bottom: 4px;
    }

    .hero-text h1 .accent {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .hero-right {
        gap: 12px;
    }

    .discount-badge {
        width: 100px;
        height: 100px;
        border-radius: 14px;
    }

    .upto { font-size: 8px; letter-spacing: 1.5px; }
    .percent { font-size: 30px; letter-spacing: -1px; }
    .off { font-size: 11px; letter-spacing: 2.5px; }

    .hero-script { font-size: 18px; }

    .deals-content { padding: 20px 14px 36px; }

    .filter-chips {
        gap: 8px;
        margin-bottom: 20px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-chips::-webkit-scrollbar { display: none; }

    .chip {
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .chip i { font-size: 11px; }

    .deals-heading h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .deals-heading p {
        font-size: 12.5px;
    }

    .deals-grid { grid-template-columns: 1fr; gap: 16px; }

    .deal-card { border-radius: 14px; }

    .deal-image { height: 180px; }

    .deal-info { padding: 16px; }

    .deal-hotel-name {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .deal-location {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .deal-pricing-row {
        padding-top: 14px;
        gap: 10px;
    }

    .deal-price { font-size: 22px; }

    .deal-book-btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .deal-tag {
        font-size: 9px;
        padding: 4px 8px;
    }

    .deal-discount-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .deal-rating {
        font-size: 11px;
        padding: 4px 10px;
    }

    .footer { padding: 20px 16px; }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-content p { font-size: 12px; }

    .footer-links { gap: 18px; }
    .footer-links a { font-size: 12px; }
}

/* ==========================================
   RESPONSIVE - SMALL PHONES (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {

    .deals-hero { padding: 24px 14px 30px; }

    .hero-text h1 { font-size: 20px; }
    .hero-text h1 .accent { font-size: 24px; }
    .hero-tagline { font-size: 18px; }

    .hero-desc {
        font-size: 12px;
        line-height: 1.5;
    }

    .discount-badge {
        width: 90px;
        height: 90px;
        border-radius: 12px;
    }

    .upto { font-size: 7px; }
    .percent { font-size: 26px; }
    .off { font-size: 10px; letter-spacing: 2px; }

    .hero-script { font-size: 16px; }

    .deal-image { height: 160px; }
    .deal-price { font-size: 20px; }
    .deal-book-btn { padding: 8px 12px; font-size: 11.5px; }

    .deals-heading h2 { font-size: 16px; }
}

/* ==========================================
   RESPONSIVE - EXTRA SMALL (max-width: 360px)
   ========================================== */
@media (max-width: 360px) {
    .hero-text h1 { font-size: 18px; }
    .hero-text h1 .accent { font-size: 22px; }
    .hero-tagline { font-size: 16px; }

    .deal-image { height: 150px; }
    .deal-hotel-name { font-size: 14px; }
    .deal-price { font-size: 18px; }
}