/*
 * AkuVilla — Single Villa
 * File: assets/villa/single.css
 * Scope: Single Villa page only.
 */

.akv-single-page {
    --single-bg: #f5f3ef;
    --single-surface: #ffffff;
    --single-surface-soft: #faf8f4;
    --single-ink: #14283d;
    --single-heading: #102a43;
    --single-muted: #697789;
    --single-soft-text: #8a94a0;
    --single-gold: #a98248;
    --single-gold-dark: #8f6b3b;
    --single-line: #e5e1da;
    background: var(--single-bg);
    color: var(--single-ink);
    overflow: clip;
}

.akv-single-page .akv-container {
    width: min(1400px, calc(100% - 48px));
    margin-inline: auto;
}

/* =========================================================
   HERO
   ========================================================= */

.akv-single-hero {
    position: relative;
    padding: 126px 0 54px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(191, 151, 83, .22), transparent 28%),
        radial-gradient(circle at 8% 100%, rgba(255, 255, 255, .05), transparent 30%),
        linear-gradient(135deg, #0b1f32 0%, #122f49 58%, #173d5d 100%);
    color: #fff;
    border-bottom: 0;
    box-shadow: 0 18px 50px rgba(9, 25, 40, .12);
}

.akv-single-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1400px, calc(100% - 48px));
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(198, 157, 88, .85), transparent);
    pointer-events: none;
}

.akv-single-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .01em;
    transition: color .2s ease, transform .2s ease;
}

.akv-single-back span {
    color: var(--single-gold);
    font-size: 17px;
    line-height: 1;
}

.akv-single-back:hover {
    color: #fff;
    transform: translateX(-2px);
}

.akv-single-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.akv-single-heading > div:first-child {
    position: relative;
    min-width: 0;
    max-width: 980px;
}

.akv-single-heading > div:first-child::before {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d5ad68, rgba(213, 173, 104, .18));
}

.akv-single-heading h1 {
    max-width: 900px;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    font-size: clamp(42px, 5.2vw, 70px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 850;
    text-wrap: balance;
}

.akv-single-heading .akv-eyebrow {
    color: #d5ad68;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .20em;
}

.akv-single-heading-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

.akv-single-heading-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.akv-single-heading-meta span + span::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 4px;
    border-radius: 50%;
    background: rgba(213, 173, 104, .8);
}

.akv-single-heading-label {
    min-width: 178px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 17px;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
    text-align: right;
}

.akv-single-heading-label span {
    display: block;
    color: var(--single-gold);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .17em;
}

.akv-single-heading-label strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 850;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.akv-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 30px;
    align-items: start;
    padding-top: 30px;
    padding-bottom: 86px;
}

.akv-single-main,
.akv-single-sidebar {
    min-width: 0;
}

.akv-booking-sticky {
    position: sticky;
    top: 108px;
}

/* =========================================================
   GALLERY
   ========================================================= */

.akv-single-gallery {
    overflow: hidden;
    border: 1px solid #e1ddd5;
    border-radius: 26px;
    background: #e9e5de;
    box-shadow: 0 24px 70px rgba(31, 27, 21, .09);
}

.akv-single-gallery-main {
    position: relative;
    height: min(58vw, 650px);
    min-height: 420px;
    overflow: hidden;
}

.akv-single-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .2s ease, transform .55s ease;
}

.akv-single-gallery-main:hover img {
    transform: scale(1.012);
}

.akv-single-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 19, 30, .04), transparent 42%, rgba(8, 19, 30, .20));
    pointer-events: none;
}

.akv-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(20, 29, 38, .42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.akv-gallery-control:hover {
    background: rgba(16, 42, 67, .88);
    transform: translateY(-50%) scale(1.04);
}

.akv-gallery-prev { left: 20px; }
.akv-gallery-next { right: 20px; }

.akv-gallery-count {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(17, 17, 17, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
}

.akv-gallery-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: #fff;
}

.akv-gallery-thumb {
    height: 78px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #eee;
    opacity: .68;
    cursor: pointer;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.akv-gallery-thumb:hover,
.akv-gallery-thumb.is-active {
    opacity: 1;
}

.akv-gallery-thumb.is-active {
    border-color: var(--single-gold);
}

.akv-gallery-thumb:hover {
    transform: translateY(-1px);
}

.akv-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   VILLA INFORMATION
   ========================================================= */

.akv-single-info-card {
    margin-top: 24px;
    padding: clamp(28px, 4vw, 50px);
    border: 1px solid var(--single-line);
    border-radius: 26px;
    background: var(--single-surface);
    box-shadow: 0 14px 45px rgba(30, 26, 20, .045);
}

.akv-single-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--single-line);
}

.akv-single-facts div {
    min-width: 0;
    padding: 0 22px;
    border-right: 1px solid var(--single-line);
}

.akv-single-facts div:first-child { padding-left: 0; }
.akv-single-facts div:last-child { border-right: 0; }

.akv-single-facts strong {
    display: block;
    color: var(--single-heading);
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.akv-single-facts span {
    display: block;
    margin-top: 6px;
    color: var(--single-soft-text);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.akv-single-section {
    padding: 8px 0 44px;
}

.akv-single-section + .akv-single-section {
    padding-top: 42px;
    border-top: 1px solid var(--single-line);
}

.akv-section-kicker {
    display: inline-block;
    color: var(--single-gold-dark);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .18em;
}

.akv-single-section h2 {
    max-width: 720px;
    margin: 10px 0 22px;
    color: var(--single-heading);
    font-size: clamp(27px, 3.2vw, 42px);
    line-height: 1.06;
    letter-spacing: -.045em;
    font-weight: 800;
}

.akv-rich-content {
    color: #5d6977;
    font-size: 15px;
    line-height: 1.9;
}

.akv-rich-content p {
    margin: 0 0 16px;
}

.akv-rich-content p:last-child {
    margin-bottom: 0;
}

.akv-rich-content strong,
.akv-rich-content b {
    color: var(--single-heading);
}

.akv-rich-content a {
    color: var(--single-gold-dark);
}

.akv-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

/* =========================================================
   FACILITIES — PREMIUM GRID
   ========================================================= */

.akv-facilities-section {
    margin-top: 10px;
    padding: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.akv-facilities-section h2 {
    margin-bottom: 26px;
}

.akv-facility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    background: transparent;
}

.akv-facility-item {
    display: grid;
    grid-template-columns: 26px 28px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    min-height: 66px;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--single-line);
    border-radius: 15px;
    background: #fff;
    color: var(--single-heading);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.akv-facility-item:hover {
    position: relative;
    z-index: 1;
    border-color: #d9c6a8;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 27, 21, .06);
    transform: translateY(-1px);
}

.akv-facility-index {
    color: #a9a196;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
}

.akv-facility-check {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid #e3d7c5;
    border-radius: 50%;
    background: #fff;
    color: var(--single-gold-dark);
    font-size: 10px;
    line-height: 1;
}

.akv-facility-item > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* =========================================================
   REVIEWS
   ========================================================= */

.akv-reviews-section {
    padding-bottom: 0;
}

.akv-review-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.akv-review-heading h2 {
    margin-bottom: 0;
}

.akv-review-score {
    text-align: right;
}

.akv-review-score strong {
    display: block;
    color: var(--single-heading);
    font-size: 28px;
    line-height: 1;
}

.akv-review-score span {
    display: block;
    margin-top: 3px;
    color: var(--single-gold);
    letter-spacing: 2px;
    font-size: 12px;
}

.akv-review-score small {
    display: block;
    margin-top: 5px;
    color: var(--single-soft-text);
    font-size: 10px;
}

.akv-review-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.akv-review-empty {
    padding: 22px;
    border: 1px dashed #dcd5cb;
    border-radius: 14px;
    color: #8b867e;
    font-size: 12px;
}

.akv-review-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--single-line);
}

.akv-review-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.akv-review-form input,
.akv-review-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd8d0;
    border-radius: 12px;
    background: #faf9f7;
    padding: 13px 14px;
    color: #172b40;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.akv-review-form input:focus,
.akv-review-form textarea:focus {
    border-color: #a88962;
    box-shadow: 0 0 0 3px rgba(168, 137, 98, .10);
}

.akv-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.akv-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.akv-rating-input label {
    color: #cfc9c0;
    font-size: 23px;
    cursor: pointer;
}

.akv-rating-input label:hover,
.akv-rating-input label:hover ~ label,
.akv-rating-input input:checked ~ label {
    color: var(--single-gold);
}

.akv-button {
    border: 0;
    cursor: pointer;
}

.akv-button-dark {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    background: var(--single-heading);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

/* =========================================================
   RELATED VILLAS
   ========================================================= */

.akv-related-section {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--single-line);
}

.akv-related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.akv-related-heading h2 {
    margin: 8px 0 0;
    color: var(--single-heading);
    font-size: clamp(27px, 3.4vw, 42px);
    line-height: 1;
    letter-spacing: -.045em;
}

.akv-text-link {
    color: var(--single-heading);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.akv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1240px) {
    .akv-single-layout {
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 24px;
    }

    .akv-single-heading-label {
        display: none;
    }

    .akv-facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .akv-single-hero {
        padding-top: 108px;
    }

    .akv-single-layout {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .akv-booking-sticky {
        position: relative;
        top: auto;
    }

    .akv-single-gallery-main {
        height: 65vw;
    }

    .akv-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .akv-single-page .akv-container {
        width: min(100% - 28px, 1400px);
    }

    .akv-single-hero {
        padding: 96px 0 28px;
    }

    .akv-single-back {
        margin-bottom: 20px;
        font-size: 11px;
    }

    .akv-single-heading > div:first-child::before {
        margin-bottom: 15px;
    }

    .akv-single-heading h1 {
        margin-bottom: 13px;
        font-size: 42px;
    }

    .akv-single-heading-meta {
        gap: 7px 12px;
        font-size: 11px;
    }

    .akv-single-layout {
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 52px;
    }

    .akv-single-gallery {
        border-radius: 18px;
    }

    .akv-single-gallery-main {
        height: 72vw;
        min-height: 280px;
    }

    .akv-gallery-control {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .akv-gallery-prev { left: 12px; }
    .akv-gallery-next { right: 12px; }

    .akv-gallery-count {
        right: 12px;
        bottom: 12px;
    }

    .akv-gallery-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        padding: 7px;
    }

    .akv-gallery-thumb {
        height: 64px;
    }

    .akv-single-info-card {
        padding: 22px;
        border-radius: 18px;
    }

    .akv-single-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding-bottom: 22px;
        margin-bottom: 28px;
    }

    .akv-single-facts div,
    .akv-single-facts div:first-child {
        padding: 0;
        border-right: 0;
    }

    .akv-single-facts strong {
        font-size: 21px;
    }

    .akv-facilities-section {
        padding: 22px;
        border-radius: 18px;
    }

    .akv-facility-grid {
        grid-template-columns: 1fr;
    }

    .akv-facility-item {
        min-height: 60px;
    }

    .akv-review-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .akv-review-score {
        text-align: left;
    }

    .akv-review-form-grid {
        grid-template-columns: 1fr;
    }

    .akv-related-section {
        padding: 52px 0;
    }

    .akv-related-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .akv-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .akv-single-page *,
    .akv-single-page *::before,
    .akv-single-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
