/* =========================================
   FIRSAT OTELLERİ — 4x4 GRID
   ========================================= */

.deals {
    background: linear-gradient(180deg, #fff8ec 0%, #fdf3df 100%);
    padding: 56px 0 70px;
}

/* ============ BUNGALOVLAR VARYANTI (yeşil tema) ============ */
.deals--bungalovs {
    background: linear-gradient(180deg, #f1faf3 0%, #e3f3e8 100%);
}

.deals--bungalovs .deals__kicker {
    color: var(--color-green-dark);
}

.deals--bungalovs .deals-tab.is-active {
    background: linear-gradient(135deg, #007a3d 0%, #00bf63 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 191, 99, 0.35);
}

.deals--bungalovs .hotel-card {
    border-color: rgba(0, 191, 99, 0.18);
}

.deals--bungalovs .hotel-card__badge--accent {
    background: linear-gradient(135deg, #007a3d 0%, #00bf63 100%);
    box-shadow: 0 2px 8px rgba(0, 191, 99, 0.35);
}

.deals--bungalovs .hotel-card__price-new {
    color: var(--color-green-dark);
}

/* Header ortalama (Bungalovlar için) — base .deals__header'ı yenmek için çift sınıf */
.deals__header.deals__header--centered {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.deals__header--centered .deals__title-wrap {
    align-items: center;
}

.deals__header--centered .deals__subtitle {
    margin-left: auto;
    margin-right: auto;
}

.deals__subtitle {
    font-size: 14.5px;
    color: var(--color-text-muted);
    margin-top: 6px;
    max-width: 560px;
}

/* ============ PAKET TURLAR VARYANTI (mor tema) ============ */
.deals--packages {
    background: linear-gradient(180deg, #f7f2fb 0%, #ece2f5 100%);
}

.deals--packages .deals__kicker {
    color: #6b3aa0;
}

.deals--packages .deals-tab.is-active {
    background: linear-gradient(135deg, #6b3aa0 0%, #9d6cd0 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(107, 58, 160, 0.35);
}

.deals--packages .deals__tabs {
    border-color: rgba(107, 58, 160, 0.22);
}

.deals--packages .hotel-card {
    border-color: rgba(107, 58, 160, 0.18);
}

.deals--packages .hotel-card__badge--accent {
    background: linear-gradient(135deg, #6b3aa0 0%, #9d6cd0 100%);
    box-shadow: 0 2px 8px rgba(107, 58, 160, 0.35);
}

.deals--packages .hotel-card__price-new {
    color: #6b3aa0;
}

/* TURLAR VARYANTI — farklı arka plan + cyan vurgular */
.deals--tours {
    background: linear-gradient(180deg, #f1f9fc 0%, #e3f1f8 100%);
}

.deals--tours .deals__kicker {
    color: var(--color-cyan-dark);
}

.deals--tours .deals__tabs {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(12, 192, 223, 0.25);
}

.deals--tours .deals-tab:hover:not(.is-active) {
    background: rgba(12, 192, 223, 0.12);
    color: var(--color-cyan-dark);
}

.deals--tours .deals-tab.is-active {
    background: linear-gradient(135deg, #0a9fb9 0%, #0cc0df 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(12, 192, 223, 0.35);
}

.deals--tours .hotel-card {
    border-color: rgba(12, 192, 223, 0.18);
}

.deals--tours .hotel-card__badge--accent {
    background: linear-gradient(135deg, #0a9fb9 0%, #0cc0df 100%);
    box-shadow: 0 2px 8px rgba(12, 192, 223, 0.35);
}

.deals__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* === HEADER === */
.deals__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.deals__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deals__kicker {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-orange-dark);
    letter-spacing: 1.5px;
}

.deals__title {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.1;
}

/* === FILTER TABS === */
.deals__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 181, 68, 0.25);
}

.deals-tab {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    background: transparent;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.deals-tab:hover:not(.is-active) {
    background: rgba(255, 181, 68, 0.15);
    color: var(--color-orange-dark);
}

.deals-tab.is-active {
    background: linear-gradient(135deg, #ff6b35 0%, #f49b1a 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(255, 107, 53, 0.32);
}

/* === GRID === */
.deals__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* === "TÜMÜNÜ GÖR" CTA BUTONU === */
.deals__cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.deals__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: var(--color-green-dark);
    font-weight: 700;
    font-size: 14.5px;
    border: 1.5px solid var(--color-green);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.deals__more-btn:hover {
    background: var(--color-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(105, 41, 212, 0.28);
}

.deals__more-btn svg { transition: transform 0.2s ease; }
.deals__more-btn:hover svg { transform: translateX(3px); }

/* Varyant renkleri (her bölümün kendi temasıyla uyumlu) */
.deals--tours .deals__more-btn {
    color: var(--color-cyan-dark);
    border-color: var(--color-cyan);
}
.deals--tours .deals__more-btn:hover {
    background: var(--color-cyan-dark);
    box-shadow: 0 8px 18px rgba(155, 108, 255, 0.3);
}

.deals--bungalovs .deals__more-btn {
    color: #007a3d;
    border-color: #00bf63;
}
.deals--bungalovs .deals__more-btn:hover {
    background: #00bf63;
    box-shadow: 0 8px 18px rgba(0, 191, 99, 0.3);
}

.deals--packages .deals__more-btn {
    color: #6b3aa0;
    border-color: #9d6cd0;
}
.deals--packages .deals__more-btn:hover {
    background: #6b3aa0;
    box-shadow: 0 8px 18px rgba(107, 58, 160, 0.3);
}

.deals__empty {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    color: var(--color-text-muted);
    border: 1px dashed var(--color-border);
}

.deals__empty strong { display: block; color: var(--color-text); font-size: 17px; margin-bottom: 6px; }

/* === HOTEL CARD === */
.hotel-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
    border: 1px solid rgba(255, 181, 68, 0.18);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    animation: cardFadeIn 0.35s ease both;
}

/* Tab değişiminde kartlar pıt diye çıkmasın diye yumuşak giriş */
@keyframes cardFadeIn {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Stagger — her kart hafif gecikmeyle gelsin */
.hotel-card:nth-child(2)  { animation-delay: 0.03s; }
.hotel-card:nth-child(3)  { animation-delay: 0.06s; }
.hotel-card:nth-child(4)  { animation-delay: 0.09s; }
.hotel-card:nth-child(5)  { animation-delay: 0.04s; }
.hotel-card:nth-child(6)  { animation-delay: 0.07s; }
.hotel-card:nth-child(7)  { animation-delay: 0.10s; }
.hotel-card:nth-child(8)  { animation-delay: 0.13s; }
.hotel-card:nth-child(9)  { animation-delay: 0.05s; }
.hotel-card:nth-child(10) { animation-delay: 0.08s; }
.hotel-card:nth-child(11) { animation-delay: 0.11s; }
.hotel-card:nth-child(12) { animation-delay: 0.14s; }
.hotel-card:nth-child(13) { animation-delay: 0.06s; }
.hotel-card:nth-child(14) { animation-delay: 0.09s; }
.hotel-card:nth-child(15) { animation-delay: 0.12s; }
.hotel-card:nth-child(16) { animation-delay: 0.15s; }

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
}

.hotel-card__image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background:
        linear-gradient(135deg, #4d1a9e 0%, #6929d4 55%, #9b6cff 100%);
}

/* fallback ikonu — resim yüklenmezse görünür */
.hotel-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' opacity='0.4'><path d='M3 21h18'/><path d='M5 21V7l8-4v18'/><path d='M19 21V11l-6-4'/><path d='M9 9v.01'/><path d='M9 12v.01'/><path d='M9 15v.01'/><path d='M9 18v.01'/></svg>");
    background-size: 80px;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hotel-card__image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    /* Yüklenmeden önce alt-text görünmesin: */
    color: transparent;
    font-size: 0;
}

.hotel-card__image img.is-broken {
    opacity: 0;
}

.hotel-card:hover .hotel-card__image img {
    transform: scale(1.05);
}

.hotel-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.hotel-card__badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hotel-card__badge--light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hotel-card__badge--accent {
    background: linear-gradient(135deg, #ff6b35 0%, #f49b1a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.35);
}

/* === BODY === */
.hotel-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hotel-card__location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.hotel-card__location svg {
    color: var(--color-cyan);
    flex-shrink: 0;
}

.hotel-card__name {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: 14px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === PRICE ROW === */
.hotel-card__price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.hotel-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hotel-card__price-label {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.hotel-card__price-old {
    font-size: 12.5px;
    color: #e15a4c;
    text-decoration: line-through;
    font-weight: 500;
}

.hotel-card__price-new {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-cyan);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.hotel-card__package {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
    text-align: right;
    line-height: 1.3;
    align-self: flex-end;
    padding-bottom: 4px;
    max-width: 90px;
}

/* === MINIMAL CARD (whole card clickable) === */
.hotel-card {
    text-decoration: none;
    color: inherit;
}

.hotel-card__body > .hotel-card__price-block {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

/* === FOOTER === */
.hotel-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.hotel-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
    color: var(--color-text-muted);
    line-height: 1.35;
    font-weight: 500;
    min-width: 0;
}

.hotel-card__meta span:first-child { color: var(--color-text); font-weight: 600; }

/* === RATING === */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.rating__icon {
    color: var(--color-green);
}

.rating__dots {
    display: inline-flex;
    gap: 3px;
}

.rating__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d9dde5;
}

.rating__dot.is-filled {
    background: var(--color-green);
}

.rating__dot.is-half {
    background: linear-gradient(90deg, var(--color-green) 50%, #d9dde5 50%);
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    .deals__grid { grid-template-columns: repeat(3, 1fr); }
    .deals__title { font-size: 26px; }
}

@media (max-width: 820px) {
    .deals__grid { grid-template-columns: repeat(2, 1fr); }
    .deals__header {
        flex-direction: column;
        align-items: stretch;
    }
    .deals__tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .deals__tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 520px) {
    .deals__grid { grid-template-columns: 1fr; gap: 16px; }
    .deals { padding: 36px 0 50px; }
    .deals__title { font-size: 22px; }
}
