/* ==========================================================
   CITYGO HOME V2 – PREMIUM DESKTOP FOUNDATION
========================================================== */

:root {
    --cg-primary: #08c7d4;
    --cg-primary-2: #0797a8;
    --cg-bg: #061019;
    --cg-bg-2: #07131f;
    --cg-card: rgba(13, 26, 39, .72);
    --cg-card-strong: rgba(15, 32, 47, .86);
    --cg-border: rgba(255,255,255,.11);
    --cg-text-soft: rgba(255,255,255,.72);
    --cg-text-muted: rgba(255,255,255,.54);
}

.cg-home-v2 {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(8,199,212,.18), transparent 34%),
        radial-gradient(circle at 80% 18%, rgba(8,199,212,.08), transparent 34%),
        linear-gradient(180deg, #061019 0%, #07131f 44%, #061019 100%);
    color: #fff;
    overflow: hidden;
}

/* ==========================================================
   HERO
========================================================== */

.cg-home-hero-v2 {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.cg-home-hero-v2__bg {
    position: absolute;
    inset: 0;
    background: url("https://citygo.ee/wp-content/uploads/2026/07/kuressaare-castle-hero.webp") center/cover no-repeat;
    opacity: .86;
    transform: scale(1.02);
}

.cg-home-hero-v2__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,12,19,.98) 0%, rgba(5,12,19,.74) 37%, rgba(5,12,19,.46) 62%, rgba(5,12,19,.88) 100%),
        linear-gradient(180deg, rgba(5,12,19,.22) 0%, rgba(7,19,31,.72) 62%, #07131f 100%);
}

.cg-home-hero-v2__inner {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
    min-height: 620px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
    align-items: center;
    padding-top: 34px;
}

.cg-home-hero-v2__content {
    max-width: 860px;
}

.cg-home-hero-v2__content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(48px, 4.4vw, 78px);
    line-height: .93;
    font-weight: 950;
    letter-spacing: -0.075em;
    text-shadow: 0 18px 50px rgba(0,0,0,.38);
}

.cg-home-hero-v2__content h1 span {
    color: var(--cg-primary);
}

.cg-home-hero-v2__content p {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgba(255,255,255,.88);
    font-size: 18px;
    line-height: 1.55;
    font-weight: 650;
}

/* SEARCH */

.cg-home-search-v2 {
    width: min(660px, 100%);
    height: 62px;
    padding: 0 8px 0 22px;

    display: flex;
    align-items: center;
    gap: 14px;

    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow:
        0 22px 70px rgba(0,0,0,.32),
        inset 0 0 0 1px rgba(255,255,255,.7);
}

.cg-home-search-v2 span {
    color: #0f172a;
    font-size: 23px;
    opacity: .76;
}

.cg-home-search-v2 input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
    font-weight: 750;
}

.cg-home-search-v2 input::placeholder {
    color: rgba(15,23,42,.52);
}

.cg-home-search-v2 button {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 36%),
        linear-gradient(135deg, var(--cg-primary), var(--cg-primary-2));
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(8,199,212,.35);
    transition: .22s ease;
}

.cg-home-search-v2 button:hover {
    transform: translateY(-1px) scale(1.03);
}

/* STATS */

.cg-home-hero-v2__stats {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.cg-home-hero-v2__stats div {
    position: relative;
    padding: 0 26px 0 0;
    margin-right: 26px;
}

.cg-home-hero-v2__stats div::after {
    content: "";
    position: absolute;
    right: 0;
    top: 7px;
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,.14);
}

.cg-home-hero-v2__stats div:last-child::after {
    display: none;
}

.cg-home-hero-v2__stats strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
}

.cg-home-hero-v2__stats span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================================
   WEATHER CARD
========================================================== */

.cg-weather-card-v2 {
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(8,199,212,.16), transparent 42%),
        rgba(10, 22, 34, .74);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        0 28px 80px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(24px);
}

.cg-weather-card-v2__icon {
    color: #facc15;
    font-size: 42px;
    margin-bottom: 10px;
}

.cg-weather-card-v2 span {
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 800;
}

.cg-weather-card-v2 strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 58px;
    line-height: .92;
    font-weight: 950;
    letter-spacing: -.05em;
}

.cg-weather-card-v2 p {
    margin: 14px 0 24px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

.cg-weather-card-v2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(8,199,212,.16);
    border: 1px solid rgba(8,199,212,.28);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

/* ==========================================================
   CATEGORIES
========================================================== */

.cg-home-categories-v2 {
    margin-top: -82px;
    padding: 0 0 36px;
    position: relative;
    z-index: 5;
}

.cg-home-categories-v2 .cg-container {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto;
}

.cg-home-categories-v2__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.cg-home-category-v2 {
    min-height: 116px;
    padding: 18px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(8,199,212,.13), transparent 48%),
        rgba(13, 27, 40, .76);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow:
        0 20px 60px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);

    color: #fff;
    text-decoration: none;
    transition: .22s ease;
}

.cg-home-category-v2 .cg-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    border-radius: 0;

    color: var(--cg-primary);
    transition: .25s ease;
}

.cg-home-category-v2 .cg-icon svg {
    width: 42px;
    height: 42px;
    display: block;

    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: .25s ease;
}

.cg-home-category-v2 strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 900;
    text-align: center;
}

.cg-home-category-v2 small {
    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 700;
}

.cg-home-category-v2:hover {
    border-color: rgba(8,199,212,.42);
    background:
        radial-gradient(circle at top, rgba(8,199,212,.25), transparent 52%),
        rgba(15, 35, 50, .88);
    transform: translateY(-4px);
    box-shadow:
        0 24px 70px rgba(0,0,0,.30),
        0 0 0 1px rgba(8,199,212,.08);
}

.cg-home-category-v2:hover .cg-icon {
    color: #30e6f2;
}

.cg-home-category-v2:hover .cg-icon svg {
    transform: scale(1.08);
}

/* ==========================================================
   GENERAL SECTIONS
========================================================== */

.cg-home-section-v2 {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto;
    padding: 18px 0 28px;
}

.cg-home-section-v2__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cg-home-section-v2__head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.035em;
}

.cg-home-section-v2__head a {
    color: var(--cg-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
}

/* ==========================================================
   PLACE CARDS / RECOMMENDED
========================================================== */

.cg-home-card-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cg-home-place-card-v2 {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 22px;
    background: rgba(13, 27, 40, .78);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 20px 56px rgba(0,0,0,.22);
    text-decoration: none;
    color: #fff;
    transition: .22s ease;
}

.cg-home-place-card-v2:hover {
    transform: translateY(-4px);
    border-color: rgba(8,199,212,.32);
}

.cg-home-place-card-v2__image {
    height: 142px;
    background-size: cover;
    background-position: center;
}

.cg-home-place-card-v2__body {
    padding: 14px 16px 15px;
}

.cg-home-place-card-v2__body strong {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.cg-home-place-card-v2__body span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.58);
    font-size: 13px;
    font-weight: 650;
}

.cg-home-place-card-v2__meta {
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 750;
}

.cg-home-place-card-v2__rating {
    color: #facc15;
}

.cg-home-place-card-v2__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34,197,94,.92);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.cg-home-place-card-v2__heart {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(6,16,25,.62);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
   RENT BANNER
========================================================== */

.cg-home-rent-banner-v2 {
    width: min(1500px, calc(100% - 80px));
    margin: 10px auto 34px;
    min-height: 210px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;

    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, #078998 0%, #05bccb 48%, #067b89 100%);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.cg-home-rent-banner-v2__inner {
    position: relative;
    z-index: 2;
    min-height: 210px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.cg-home-rent-banner-v2 h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -.055em;
}

.cg-home-rent-banner-v2 p {
    max-width: 460px;
    margin: 0 0 22px;
    color: rgba(255,255,255,.84);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 650;
}

.cg-home-rent-banner-v2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: #fff;
    color: #067b89;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

/* ==========================================================
   MAP / NEARBY
========================================================== */

.cg-home-map-nearby-v2 {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, .8fr);
    gap: 18px;
}

.cg-home-map-v2,
.cg-home-nearby-v2 {
    border-radius: 24px;
    background: rgba(13, 27, 40, .74);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 22px 65px rgba(0,0,0,.22);
    overflow: hidden;
}

.cg-home-map-v2 {
    min-height: 330px;
    position: relative;
    background:
        linear-gradient(rgba(6,16,25,.2), rgba(6,16,25,.5)),
        url("https://citygo.ee/wp-content/uploads/2026/07/kuressaare-map-dark.webp") center/cover no-repeat;
}

.cg-home-map-v2__button {
    position: absolute;
    right: 22px;
    bottom: 22px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(6,16,25,.78);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.cg-home-nearby-v2 {
    padding: 20px;
}

.cg-home-nearby-v2 h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 19px;
    font-weight: 950;
}

.cg-home-nearby-v2__item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.cg-home-nearby-v2__item:last-child {
    border-bottom: 0;
}

.cg-home-nearby-v2__item img {
    width: 64px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

.cg-home-nearby-v2__item strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.cg-home-nearby-v2__item span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.56);
    font-size: 12px;
    font-weight: 650;
}

.cg-home-nearby-v2__distance {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {
    .cg-home-categories-v2__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cg-home-card-grid-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cg-home-map-nearby-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .cg-home-hero-v2__inner {
        grid-template-columns: 1fr;
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .cg-weather-card-v2 {
        display: none;
    }
}

@media (max-width: 760px) {
    .cg-home-hero-v2 {
        min-height: auto;
    }

    .cg-home-hero-v2__inner,
    .cg-home-categories-v2 .cg-container,
    .cg-home-section-v2,
    .cg-home-rent-banner-v2,
    .cg-home-map-nearby-v2 {
        width: calc(100% - 32px);
    }

    .cg-home-hero-v2__inner {
        min-height: auto;
        padding-top: 58px;
        padding-bottom: 42px;
    }

    .cg-home-hero-v2__content h1 {
        font-size: 42px;
        letter-spacing: -.055em;
    }

    .cg-home-hero-v2__content p {
        font-size: 15px;
    }

    .cg-home-search-v2 {
        height: 56px;
    }

    .cg-home-search-v2 button {
        width: 46px;
        height: 46px;
    }

    .cg-home-hero-v2__stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cg-home-hero-v2__stats div {
        margin: 0;
        padding: 0;
    }

    .cg-home-hero-v2__stats div::after {
        display: none;
    }

    .cg-home-categories-v2 {
        margin-top: 0;
        padding-top: 14px;
    }

    .cg-home-categories-v2__grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
    }

    .cg-home-category-v2 {
        min-width: 132px;
    }

    .cg-home-card-grid-v2 {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 8px;
    }

    .cg-home-place-card-v2 {
        min-width: 260px;
    }

    .cg-home-rent-banner-v2__inner {
        min-height: auto;
        padding: 28px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cg-home-rent-banner-v2 h2 {
        font-size: 30px;
    }
}