@charset "UTF-8";

/* =====================================================
   CITY GUIDE PAGE — TourVista
   Design matching reference screenshots
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== HERO SECTION ===== */
.cityguide-hero {
    background: linear-gradient(135deg, #5345b8 0%, #4739a8 100%);
    padding: 60px 0 65px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    margin-top: -24px;
}

/* Ambient circular decorative shapes matching screenshot */
.cityguide-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.cityguide-hero::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.cityguide-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.cityguide-hero h1 span {
    color: #FFCA28;
}

.cityguide-hero p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== Filter Chips ===== */
.cityguide-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.cg-filter-chip {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.cg-filter-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

.cg-filter-chip.active {
    background: #FFCA28 !important;
    border-color: #FFCA28 !important;
    color: #181818 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(255, 202, 40, 0.35) !important;
}

/* ===== Grid Section ===== */
.cityguide-section {
    background: #f6f7fb;
    padding: 40px 0 80px;
    position: relative;
    z-index: 3;
}

.cg-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

.cg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== Card Tile ===== */
.cg-tile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4.1;
    text-decoration: none;
    display: block;
    background: #16122d;
    box-shadow: 0 10px 26px rgba(22, 16, 52, 0.12);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.cg-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(22, 16, 52, 0.22);
}

.cg-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.cg-tile:hover img {
    transform: scale(1.06);
}

/* ===== Badges at top ===== */
.cg-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ffffff;
    color: #5542B8;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 13px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 3;
}

.cg-best-time {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(16, 12, 34, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFD54F;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

.cg-best-time i {
    color: #FFD54F;
    font-size: 11px;
}

/* ===== Overlay & Content at bottom ===== */
.cg-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 8, 30, 0.05) 45%, rgba(10, 8, 30, 0.72) 75%, rgba(8, 6, 26, 0.96) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px;
    z-index: 2;
}

.cg-city-name {
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 3px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cg-city-tagline {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.35;
}

.cg-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFCA28;
    color: #181818;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    width: fit-content;
    box-shadow: 0 4px 14px rgba(255, 202, 40, 0.35);
    margin-top: 12px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cg-explore-btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.cg-tile:hover .cg-explore-btn {
    opacity: 1;
    max-height: 48px;
    transform: translateY(0);
}

.cg-tile:hover .cg-explore-btn:hover i {
    transform: translateX(3px);
}

/* ===== Empty State ===== */
.cg-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cg-empty i {
    font-size: 42px;
    color: #5345b8;
    margin-bottom: 14px;
    display: block;
}

.cg-empty h5 {
    color: #33277b;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 1200px) {
    .cg-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .cityguide-hero h1 { font-size: 34px; }
}
@media (max-width: 860px) {
    .cg-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .cityguide-hero { padding: 50px 0 55px; }
    .cityguide-hero h1 { font-size: 28px; }
    .cg-explore-btn { opacity: 1; max-height: 48px; transform: translateY(0); }
}
@media (max-width: 540px) {
    .cg-grid { grid-template-columns: 1fr; gap: 16px; }
    .cg-tile { aspect-ratio: 16 / 11; }
    .cityguide-hero h1 { font-size: 24px; }
}
