/**
 * Homepage - style specyficzne
 * Hero, gridy kategorii, lokalizacji, atrakcje
 * Fokus: atrakcje turystyczne (2026-02)
 */

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.05) 0%, var(--background) 50%, rgba(2, 132, 199, 0.08) 100%);
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 3rem;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* ==========================================
   SEARCH TABS (zakładki Atrakcje / Noclegi)
   ========================================== */
.search-tabs-wrapper {
    display: inline-flex;
    gap: 0.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.25rem;
    margin-bottom: 1rem;
}

.search-tab-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.search-tab-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: inline-block;
}

.search-tab-btn.active {
    background-color: var(--primary);
    color: white;
}

.search-tab-btn:not(.active):hover {
    background-color: rgba(2, 132, 199, 0.08);
    color: var(--foreground);
}

/* ==========================================
   HERO STATS BAR
   ========================================== */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hero-stats strong {
    color: var(--foreground);
}

.hero-stats-dot {
    opacity: 0.4;
}

/* ==========================================
   AUDIENCE HERO GRID ("Atrakcje na każdą okazję")
   8 kart 2→4 kolumny
   ========================================== */
.audience-hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.audience-hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.audience-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .audience-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
}

@media (min-width: 640px) {
    .audience-hero-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.audience-hero-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.18s, background-color 0.18s, transform 0.18s;
}

.audience-hero-card:hover {
    border-color: var(--primary);
    background-color: rgba(2, 132, 199, 0.05);
    transform: translateY(-2px);
}

.audience-hero-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.audience-hero-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.audience-hero-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audience-hero-count {
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

.audience-hero-arrow {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    color: var(--muted-foreground);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.18s;
}

.audience-hero-card:hover .audience-hero-arrow {
    opacity: 1;
    color: var(--primary);
}

/* ==========================================
   TYPES GRID (Odkryj według kategorii)
   ========================================== */
.types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .types-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .types-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* ==========================================
   CITIES GRID
   ========================================== */
/* Cities Banner Grid (Popularne kierunki — dynamiczne, poziome) */
.cities-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cities-banner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .cities-banner-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.city-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/2;
    background-color: rgba(2, 132, 199, 0.08);
    display: block;
}

.city-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.city-banner:hover img {
    transform: scale(1.1);
}

.city-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.city-banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.625rem 0.75rem;
    color: white;
}

.city-banner-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.city-banner-meta {
    display: block;
    font-size: 0.65rem;
    opacity: 0.8;
    color: white;
}

/* ==========================================
   SEARCH TAGS
   ========================================== */
.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-tag {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background-color: var(--card);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, background-color 0.2s;
}

.search-tag:hover {
    border-color: var(--primary);
    background-color: rgba(2, 132, 199, 0.05);
}

/* ==========================================
   HP ATTRACTION CARDS (Polecane atrakcje)
   ========================================== */
.hp-attractions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .hp-attractions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hp-attractions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-attraction-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--card);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hp-attraction-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.hp-attraction-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: rgba(2, 132, 199, 0.06);
}

.hp-attraction-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hp-attraction-card:hover .hp-attraction-img img {
    transform: scale(1.05);
}

.hp-attraction-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    opacity: 0.4;
}

.hp-attraction-placeholder svg {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
}

.hp-attraction-type-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    background-color: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

.hp-attraction-body {
    padding: 0.875rem 1rem;
}

.hp-attraction-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-attraction-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.hp-attraction-location svg {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    flex-shrink: 0;
}

/* ==========================================
   VOIVODESHIPS SECTION (Odkrywaj atrakcje)
   ========================================== */

.voivodeships-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .voivodeships-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .voivodeships-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.voivodeship-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--background);
    text-align: left;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.voivodeship-btn:hover {
    border-color: var(--primary);
    background-color: rgba(2, 132, 199, 0.05);
}

.voivodeship-name {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--foreground);
}

.voivodeship-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}


/* Voivodeships Grid — full-width variant (bez sidebar layout) */
.voivodeships-grid--full {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .voivodeships-grid--full {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .voivodeships-grid--full {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Attractions Banner Grid (banerki ze zdjeciem, 2 rzedy x 6) */
.attractions-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .attractions-banner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .attractions-banner-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.attraction-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/2;
    background-color: rgba(2, 132, 199, 0.08);
    display: block;
}

.attraction-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.attraction-banner:hover img {
    transform: scale(1.1);
}

.attraction-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.attraction-banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.625rem 0.75rem;
    color: white;
}

.attraction-banner-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attraction-banner-meta {
    display: block;
    font-size: 0.65rem;
    opacity: 0.8;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   NOCLEGI SECTION EYEBROW (podtytuł "Szukasz noclegu?")
   ========================================== */
.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* ==========================================
   PROMOTED LISTINGS
   ========================================== */
.promoted-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.promoted-label svg {
    width: 18px;
    height: 18px;
}

.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
