/* 
    ==========================================================================
    INDEX CUSTOM DESIGN SYSTEM
    Centrally managed styles for Kavana Cottages Homepage
    ==========================================================================
*/

/* ===== COUNTER AREA (PREMIUM RESTYLE) ===== */
.counter-area {
    background: #111;
    padding: 100px 0;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -60px; /* Enhanced overlap */
    overflow: hidden;
}

/* Subtle background glow */
.counter-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 167, 98, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.single-counter {
    text-align: center;
    padding: 25px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.single-counter::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(212, 167, 98, 0.35), transparent);
}

@media (max-width: 991px) {
    .single-counter::after { display: none; }
    .single-counter { margin-bottom: 40px; }
    .counter-area { padding: 70px 0 30px; }
}

.col-lg-3:last-child .single-counter::after {
    display: none;
}

.counter .count {
    display: block;
    font-size: 58px; /* Slightly larger */
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #d4a762 0%, #ffffff 100%); /* Gold to White shine */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.counter p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px; /* More breathable */
    line-height: 1.5;
    margin: 0;
}

.single-counter:hover {
    transform: translateY(-8px);
}

.single-counter:hover .count {
    filter: drop-shadow(0 15px 30px rgba(212, 167, 98, 0.25));
}


/* ===== FEATURED MODELS SECTION ===== */
.featured-section {
    background: #111;
    position: relative;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .feat-grid {
        grid-template-columns: 1fr;
    }
}

.feat-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.feat-card:hover {
    transform: translateY(-10px);
    border-color: #d4a762;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feat-img-wrap {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
}

.feat-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feat-card:hover .feat-img {
    transform: scale(1.1);
}

.feat-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feat-tag {
    display: inline-block;
    background: rgba(212, 167, 98, 0.1);
    color: #d4a762;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 50px;
    width: fit-content;
}

.feat-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s;
}

.feat-card:hover .feat-title {
    color: #d4a762;
}

.feat-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.feat-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.feat-meta-item i {
    color: #d4a762;
    font-size: 14px;
}


/* ===== TOP LOCATIONS SECTION ===== */
.top-locations-section {
    background: #161616;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.top-locations-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(101, 58, 31, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.tl-header {
    text-align: center;
    margin-bottom: 60px;
}

.tl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 167, 98, 0.1);
    border: 1px solid rgba(212, 167, 98, 0.25);
    border-radius: 50px;
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #d4a762;
    margin-bottom: 22px;
}

.tl-eyebrow .star-icon {
    font-size: 13px;
}

.tl-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
}

.tl-title span {
    color: #d4a762;
}

.tl-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.tl-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.tl-grid .tl-card:first-child {
    grid-row: 1 / 3;
}

@media (max-width: 991px) {
    .tl-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .tl-grid .tl-card:first-child {
        grid-row: auto;
        grid-column: 1 / 3;
    }
}

@media (max-width: 576px) {
    .tl-grid {
        grid-template-columns: 1fr;
    }

    .tl-grid .tl-card:first-child {
        grid-column: auto;
    }
}

.tl-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform .38s ease, box-shadow .38s ease, border-color .38s ease;
    min-height: 220px;
}

.tl-card:hover {
    transform: translateY(-7px);
    border-color: rgba(212, 167, 98, 0.35);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 167, 98, 0.12);
    text-decoration: none;
}

.tl-card:first-child {
    min-height: 460px;
}

@media (max-width: 991px) {
    .tl-card:first-child {
        min-height: 280px;
    }
}

.tl-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .55s ease;
}

.tl-card:hover .tl-card__bg {
    transform: scale(1.08);
}

.tl-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: background .4s ease;
}

.tl-card:hover .tl-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.tl-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #653a1f, #d4a762, #653a1f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .42s ease;
    z-index: 4;
}

.tl-card:hover::after {
    transform: scaleX(1);
}

.tl-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 26px;
    z-index: 3;
    transform: translateY(0);
    transition: transform .35s ease;
}

.tl-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(101, 58, 31, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 167, 98, 0.3);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #d4a762;
    margin-bottom: 10px;
}

.tl-card__badge i {
    font-size: 10px;
}

.tl-card__name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.25;
    transition: color .3s;
}

.tl-card:hover .tl-card__name {
    color: #d4a762;
}

.tl-card:first-child .tl-card__name {
    font-size: 28px;
}

.tl-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.tl-card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tl-card__meta i {
    color: #d4a762;
    font-size: 11px;
}

.tl-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    background: rgba(101, 58, 31, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(212, 167, 98, 0.4);
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease, background .3s;
    text-decoration: none;
}

.tl-card:hover .tl-card__cta {
    opacity: 1;
    transform: translateY(0);
    text-decoration: none;
}

.tl-card__cta:hover {
    background: #653a1f;
    color: #fff;
    text-decoration: none;
}

.tl-card__rating {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 167, 98, 0.3);
    border-radius: 50px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 700;
    color: #d4a762;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tl-card__rating i {
    font-size: 11px;
}

.tl-view-all {
    text-align: center;
    margin-top: 48px;
}

.tl-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d4a762;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 167, 98, 0.3);
    padding-bottom: 4px;
    transition: gap .3s, border-color .3s;
}

.tl-view-all a:hover {
    gap: 16px;
    border-color: #d4a762;
    text-decoration: none;
}


/* ===== CATEGORY SECTION ===== */
.category-section {
    background: #111;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.cat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.cat-card:hover {
    background: rgba(101, 58, 31, 0.15);
    border-color: #d4a762;
    transform: translateY(-5px);
    text-decoration: none;
}
.cat-icon {
    width: 64px;
    height: 64px;
    background: rgba(101, 58, 31, 0.2);
    border: 1px solid rgba(212, 167, 98, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a762;
    font-size: 24px;
    transition: all 0.3s;
}
.cat-card:hover .cat-icon {
    background: #d4a762;
    color: #000;
}
.cat-name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.cat-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}
