
:root {
    --bg: #07080b;
    --panel: rgba(14, 17, 22, 0.88);
    --panel-strong: #10141b;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f1ea;
    --muted: rgba(244, 241, 234, 0.72);
    --gold: #d8b15a;
    --gold-soft: rgba(216, 177, 90, 0.18);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius-xl: 28px;
    --radius-lg: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(216, 177, 90, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(120, 160, 255, 0.10), transparent 24%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

.wrapper {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: relative;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 8, 11, 0.72);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 135px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.brand:hover {
    color: var(--gold);
}

.brand span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-inline-start: auto;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-links a,
.language-picker,
.language-select {
    color: var(--gold);
}

.nav-links a:hover,
.language-picker:hover,
.language-select:hover {
    color: var(--text);
}

.jordan-flag-banner {
    position: relative;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 16px 10px;
    background: rgba(7, 8, 11, 0.76);
    
}

.jordan-flag-banner img {
    width: min(140px, 34vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.34));
}

.hero-single-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(10, 12, 16, 0.58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-single-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5, 6, 10, 0.86), rgba(5, 6, 10, 0.22));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 92px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
}

.home-hero .hero-grid {
    transform: translateY(-90px);
}


.kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.78rem;
    margin-bottom: 18px;
}

.hero h1,
.page-title {
    font-family: "Playfair Display", serif;
    line-height: 0.96;
    letter-spacing: -0.03em;
    margin: 0;
}

.hero h1 {
    font-size: clamp(3.2rem, 7vw, 6.6rem);
    max-width: 10ch;
}

.hero p {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.05rem;
    margin: 22px 0 30px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button.primary {
    background: linear-gradient(135deg, #f0d68e, #bf8c2a);
    color: #171717;
}

.button.secondary {
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 177, 90, 0.44);
}

.hero-panel {
    background: rgba(10, 12, 16, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-panel img {
    height: 520px;
    object-fit: cover;
    border-radius: 22px;
}

.stats {
    width: min(1240px, calc(100% - 32px));
    margin: -48px auto 0;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat {
    background: rgba(12, 14, 19, 0.9);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.section {
    padding: 92px 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-header p,
.subtle {
    color: var(--muted);
}

.section-title {
    font-family: "Aboreto", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
}

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

.villa-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.villa-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 177, 90, 0.5);
}

.villa-card .image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.villa-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.villa-card:hover .image-wrap img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    left: 16px;
    top: 16px;
    background: rgba(8, 9, 12, 0.75);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body {
    padding: 22px;
}

.card-body h3,
.villa-name {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
}

.card-body p {
    color: var(--muted);
    margin: 10px 0 18px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(244, 241, 234, 0.8);
    font-size: 0.92rem;
}

.pill {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--gold);
    font-weight: 600;
}

.detail-shell {
    width: min(1440px, calc(100% - 24px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    margin-bottom: 22px;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 22px;
}

.side-panel,
.gallery-panel {
    background: rgba(12, 15, 20, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.side-panel {
    padding: 13px;
    align-self: start;
    position: sticky;
    top: 94px;
}

.side-panel .subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.76rem;
    margin-bottom: 12px;
}

.villa-name {
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    margin-bottom: 10px;
}

.villa-region {
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.feature-icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
}

.feature-icon {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: rgba(244, 241, 234, 0.92);
    font-size: 0.86rem;
    line-height: 1.25;
}

.feature-symbol {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(212, 175, 55, 0.24);
    font-size: 1rem;
}


.fact-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.fact span:first-child {
    color: var(--muted);
}

.price-panel {
    margin: 4px 0 22px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.13), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.price-header {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-header span {
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.price-header small {
    color: var(--muted);
    line-height: 1.45;
}

.price-list {
    display: grid;
    gap: 8px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.price-row div {
    display: grid;
    gap: 3px;
}

.price-row strong {
    color: rgba(244, 241, 234, 0.96);
    font-size: 0.94rem;
}

.price-row small {
    color: var(--muted);
}

.price-row > span {
    flex: 0 0 auto;
    min-width: 74px;
    padding: 8px 10px;
    border-radius: 999px;
    text-align: center;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.26);
    font-weight: 800;
}


.description {
    color: var(--muted);
    margin: 20px 0 24px;
}

.gallery-panel {
    padding: 18px;
}

.hero-frame {
    position: relative;
    border-radius: 22px;
    overflow: visible;
    margin-bottom: 18px;
    padding-bottom: 66px;
    cursor: grab;
    touch-action: pan-y;
}

.hero-frame img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #050608;
}


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

.thumb {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.thumb img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.approx-location-card {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 60px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.location-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: 0 6px 2px;
}

.map-kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.location-copy h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1;
}

.location-copy p {
    color: var(--muted);
    margin: 0 0 18px;
    line-height: 1.7;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.location-tags span {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(244, 241, 234, 0.88);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.22);
    font-size: 0.86rem;
}

.luxury-map {
    position: relative;
    width: 100%;
    min-height: 390px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(circle at 62% 46%, rgba(212, 175, 55, 0.22), transparent 17%),
        radial-gradient(circle at 20% 78%, rgba(51, 154, 186, 0.22), transparent 22%),
        linear-gradient(135deg, #101820, #071018 58%, #06090f);
}

.luxury-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.5;
}

.luxury-map::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.13);
    pointer-events: none;
}

.map-grid-line,
.map-route,
.map-water,
.approx-circle,
.map-label {
    position: absolute;
}

.map-grid-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    transform-origin: left center;
}

.line-one {
    width: 72%;
    left: 11%;
    top: 28%;
    transform: rotate(-15deg);
}

.line-two {
    width: 62%;
    left: 22%;
    top: 58%;
    transform: rotate(12deg);
}

.line-three {
    width: 54%;
    left: 24%;
    top: 76%;
    transform: rotate(-26deg);
}

.map-route {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.58), rgba(244, 241, 234, 0.14));
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.22);
    transform-origin: left center;
}

.route-one {
    width: 70%;
    left: 10%;
    top: 62%;
    transform: rotate(-18deg);
}

.route-two {
    width: 44%;
    left: 38%;
    top: 34%;
    transform: rotate(34deg);
    opacity: 0.82;
}

.route-three {
    width: 38%;
    left: 13%;
    top: 44%;
    transform: rotate(55deg);
    opacity: 0.66;
}

.map-water {
    width: 180px;
    height: 76px;
    right: -32px;
    bottom: 26px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 166, 204, 0.42), rgba(55, 166, 204, 0.08) 68%, transparent 70%);
    filter: blur(1px);
}

.approx-circle {
    width: 142px;
    height: 142px;
    left: 54%;
    top: 38%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.82);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.06) 58%, transparent 62%);
    box-shadow: 0 0 0 16px rgba(212, 175, 55, 0.055), 0 0 42px rgba(212, 175, 55, 0.24);
}

.approx-circle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 9px rgba(212, 175, 55, 0.18), 0 0 22px rgba(212, 175, 55, 0.74);
}

.map-label {
    z-index: 2;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(3, 6, 10, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(244, 241, 234, 0.86);
    font-size: 0.78rem;
    backdrop-filter: blur(10px);
}

.airport-label {
    left: 9%;
    bottom: 18%;
}

.amman-label {
    right: 10%;
    top: 14%;
}

.location-label {
    left: 48%;
    top: 23%;
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.26);
}

@media (max-width: 900px) {
    .approx-location-card {
        grid-template-columns: 1fr;
    }

    .location-copy {
        min-height: auto;
        padding: 4px 2px 0;
    }
}

@media (max-width: 700px) {
    .approx-location-card {
        padding: 14px;
        border-radius: 24px;
    }

    .luxury-map {
        min-height: 320px;
    }

    .approx-circle {
        width: 118px;
        height: 118px;
    }

    .map-label {
        font-size: 0.7rem;
        padding: 7px 9px;
    }

    .location-label {
        left: 36%;
        top: 21%;
    }
}

.cta {
    margin-top: 36px;
    padding: 34px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(216,177,90,0.10), rgba(255,255,255,0.03));
}

.cta h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3vw, 3rem);
}

.cta p {
    color: var(--muted);
    margin: 0 0 22px;
    max-width: 68ch;
}

.footer {
    padding: 28px 0 44px;
    color: rgba(244, 241, 234, 0.5);
    text-align: center;
}

@media (max-width: 1100px) {
    .hero-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

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

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

@media (max-width: 700px) {
    .wrapper,
    .topbar-inner,
    .detail-shell {
        width: min(100% - 20px, 1240px);
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        padding: 56px 0 72px;
    }

    .home-hero .hero-grid {
        transform: translateY(-18px);
    }

    .home-hero .hero-grid > div:first-child {
        text-align: center;
        justify-self: center;
    }

    .home-hero .hero h1,
    .home-hero h1 {
        max-width: 100%;
    }

    .home-hero .actions {
        justify-content: center;
    }

    .hero-slide img,
    .hero-panel img,
    .hero-single-image img {
        height: 360px;
    }

    .stats,
    .card-grid,
    .thumb-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: start;
    }

    .hero-slide .slide-card {
        flex-direction: column;
        align-items: start;
    }

    .lightbox-panel {
        width: calc(100% - 14px);
        height: calc(100vh - 14px);
        margin-top: 7px;
    }

}


.hero-frame.is-interactive:hover {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero-frame.is-interactive:active {
    cursor: grabbing;
}

.hero-frame .media-control {
    position: absolute;
    top: auto;
    bottom: 0;
    transform: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: rgba(7, 8, 11, 0.62);
    color: var(--gold);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(12px);
}

.hero-frame .media-control-prev {
    left: calc(50% - 84px);
}

.hero-frame .media-control-next {
    right: calc(50% - 84px);
}

.hero-frame .media-control:hover,
.hero-carousel .carousel-control:hover,
.lightbox-nav:hover {
    background: var(--gold-soft);
    box-shadow: 0 0 0 3px rgba(216, 177, 90, 0.10), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.hero-frame .media-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(7, 8, 11, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(244, 241, 234, 0.94);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.thumb {
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.thumb:hover,
.thumb.is-selected {
    transform: translateY(-2px);
    border-color: rgba(216, 177, 90, 0.5);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.thumb::after {
    content: "View";
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7, 8, 11, 0.72);
    color: #fff;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.thumb:hover::after,
.thumb.is-selected::after {
    opacity: 1;
    transform: translateY(0);
}

.hero-carousel {
    position: relative;
    overflow: visible;
    padding-bottom: 64px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(10, 12, 16, 0.58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-carousel-track {
    display: flex;
    overflow: hidden;
    border-radius: var(--radius-xl);
    transition: transform 0.6s ease;
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.hero-carousel .carousel-control {
    position: absolute;
    top: auto;
    bottom: 0;
    transform: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold);
    background: rgba(7, 8, 11, 0.62);
    color: var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    font-size: 2rem;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-carousel .carousel-control-prev {
    left: calc(50% - 54px);
}

.hero-carousel .carousel-control-next {
    right: calc(50% - 54px);
}

.hero-carousel .carousel-control:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 4px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.lightbox-open .lightbox {
    display: block;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 6, 0.84);
    backdrop-filter: blur(18px);
}

.lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 24px));
    max-height: min(92vh, 920px);
    margin: 4vh auto 0;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(10, 12, 16, 0.96);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
}

.lightbox-media {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    background: #050608;
}

.lightbox-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(min(92vh, 920px) - 88px);
    object-fit: contain;
}

.lightbox-counter {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(7, 8, 11, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(244, 241, 234, 0.94);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.lightbox-close,
.lightbox-nav {
    z-index: 2;
    border: 0;
    cursor: pointer;
    color: #fff;
    backdrop-filter: blur(12px);
}

.lightbox-close {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(8, 10, 14, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-controls {
    position: relative;
    flex: 0 0 auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(10, 12, 16, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-nav-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.lightbox-nav {
    position: relative;
    top: auto;
    bottom: auto;
    transform: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(7, 8, 11, 0.62);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 1.3rem;
}

body.lightbox-open {
    overflow: hidden;
}


.amatic-tagline{
font-family:"Amatic SC",cursive;
font-size:clamp(2rem,4vw,3.8rem);
letter-spacing:.04em;
}

.jordan-flag-wrap{
display:flex;
justify-content:center;
margin:10px 0 18px;
}

.jordan-flag{
font-size:28px;
padding:8px 16px;
border-radius:999px;
background:rgba(255,255,255,.75);
backdrop-filter:blur(10px);
box-shadow:0 8px 24px rgba(0,0,0,.08);
}


.language-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
}

.language-picker-label {
    display: none;
}

.language-picker::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23c9a24d' stroke-width='1.8'/%3E%3Cpath d='M3.6 12h16.8M12 3c2.2 2.35 3.4 5.4 3.4 9s-1.2 6.65-3.4 9M12 3C9.8 5.35 8.6 8.4 8.6 12s1.2 6.65 3.4 9' stroke='%23f4ddb0' stroke-width='1.45' stroke-linecap='round'/%3E%3C/svg%3E");
}

.language-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    color: var(--gold);
    background-color: transparent;
    background-image: none;
    font: inherit;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    padding: 4px 0;
    text-align: left;
}

.language-select::-ms-expand {
    display: none;
}

.language-select option {
    color: var(--gold);
    background: #07080b;
    font-weight: 600;
}

.language-picker::after {
    content: none;
}


html[dir="ltr"] .topbar-inner {
    direction: ltr;
    flex-direction: row;
}

html[dir="ltr"] .nav-links {
    direction: ltr;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

html[dir="rtl"] .topbar-inner {
    direction: ltr;
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    direction: rtl;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

html[dir="rtl"] .language-picker {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-select {
    padding: 4px 0;
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: Inter, Tahoma, Arial, sans-serif;
    text-align: right;
}

html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .section-header,
html[dir="rtl"] .card-footer,
html[dir="rtl"] .detail-item,
html[dir="rtl"] .fact {
    direction: rtl;
}


html[dir="rtl"] .nav-links,
html[dir="rtl"] .actions,
html[dir="rtl"] .meta-row {
    direction: rtl;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .page-title {
    letter-spacing: 0;
    max-width: 12ch;
}

html[dir="rtl"] .kicker,
html[dir="rtl"] .badge,
html[dir="rtl"] .side-panel .subtitle,
html[dir="rtl"] .detail-badge {
    letter-spacing: 0.08em;
}

html[dir="rtl"] .badge {
    left: auto;
    right: 16px;
}

html[dir="rtl"] .media-counter {
    right: auto;
    left: 18px;
}

html[dir="rtl"] .hero-frame .media-control-prev {
    left: calc(50% - 84px);
    right: auto;
}

html[dir="rtl"] .hero-frame .media-control-next {
    right: calc(50% - 84px);
    left: auto;
}


@media (max-width: 760px) {
    .topbar-inner {
        justify-content: center;
    }

    .nav-links {
        margin-inline-start: 0;
    }

    .language-picker {
        order: 3;
    }
}

/* Arabic gallery arrow direction fix */
html[dir="rtl"] .hero-frame .media-control,
html[dir="rtl"] .lightbox-nav {
    transform: rotate(180deg);
}

html[dir="rtl"] .hero-carousel .carousel-control {
    transform: rotate(180deg);
}

html[dir="rtl"] .hero-carousel .carousel-control-prev {
    left: auto;
    right: calc(50% - 54px);
}

html[dir="rtl"] .hero-carousel .carousel-control-next {
    right: auto;
    left: calc(50% - 54px);
}

@media (max-width: 700px) {
    .topbar {
        position: relative;
        z-index: 40;
    }

    .topbar-inner {
        width: min(100% - 22px, 1240px);
        min-height: auto;
        padding: 14px 0 16px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    html[dir="ltr"] .topbar-inner,
    html[dir="rtl"] .topbar-inner {
        flex-direction: column;
    }

    .brand {
        font-size: clamp(1.1rem, 5vw, 1.35rem);
        letter-spacing: 0.09em;
        text-align: center;
        line-height: 1.2;
    }

    .nav-links {
        display: flex;
        width: 100%;
        margin: 0;
        justify-content: center;
        align-items: center;
        gap: 9px;
        flex-wrap: wrap;
        font-size: 0.82rem;
    }

    html[dir="ltr"] .nav-links,
    html[dir="rtl"] .nav-links {
        margin: 0;
        justify-content: center;
    }

    .nav-links a,
    .language-picker {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 7px 11px;
        border: 1px solid rgba(216, 177, 90, 0.32);
        border-radius: 999px;
        background: rgba(216, 177, 90, 0.08);
        backdrop-filter: blur(12px);
    }

    .language-picker {
        gap: 6px;
    }

    .language-select {
        font-size: 0.82rem;
        line-height: 1.2;
        padding: 0;
        max-width: 92px;
    }

    html[dir="rtl"] .language-select {
        padding: 0;
    }

    .jordan-flag-banner {
        padding-top: 14px;
    }
}

@media (max-width: 380px) {
    .nav-links {
        gap: 7px;
        font-size: 0.78rem;
    }

    .nav-links a,
    .language-picker {
        padding: 6px 9px;
    }

    .language-select {
        max-width: 84px;
    }
}


.nav-toggle {
    display: none;
    width: 44px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(216, 177, 90, 0.45);
    border-radius: 12px;
    background: rgba(216, 177, 90, 0.08);
    color: var(--gold);
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: var(--gold);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: rgba(216, 177, 90, 0.78);
    background: rgba(216, 177, 90, 0.14);
    outline: none;
}

.topbar.is-menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.topbar.is-menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.topbar.is-menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
    .topbar-inner,
    html[dir="ltr"] .topbar-inner,
    html[dir="rtl"] .topbar-inner {
        width: min(100% - 22px, 1240px);
        min-height: 74px;
        padding: 14px 0;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    html[dir="rtl"] .topbar-inner {
        flex-direction: row-reverse;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .brand {
        text-align: inherit;
    }

    .nav-links,
    html[dir="ltr"] .nav-links,
    html[dir="rtl"] .nav-links {
        display: none;
        width: 100%;
        margin: 0;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        border: 1px solid rgba(216, 177, 90, 0.20);
        border-radius: 18px;
        background: rgba(7, 8, 11, 0.94);
        box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
    }

    .topbar.is-menu-open .nav-links,
    html[dir="ltr"] .topbar.is-menu-open .nav-links,
    html[dir="rtl"] .topbar.is-menu-open .nav-links {
        display: flex;
    }

    .nav-links a,
    .language-picker {
        width: 100%;
        min-height: 42px;
        padding: 9px 12px;
        justify-content: center;
        text-align: center;
    }

    .language-picker {
        display: flex;
        position: relative;
    }

    .language-picker::after {
        content: attr(data-language-label);
        color: var(--gold);
        font: inherit;
        font-size: 0.82rem;
        font-weight: 600;
        line-height: 1.2;
        pointer-events: none;
    }

    .language-select {
        max-width: none;
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }
}


@media (max-width: 700px) {
    .lightbox-panel {
        width: calc(100% - 14px);
        height: auto;
        max-height: calc(100vh - 14px);
        margin-top: 7px;
    }

    .lightbox-media img {
        max-height: calc(100vh - 104px);
    }

    .lightbox-controls {
        min-height: 90px;
        padding-right: 72px;
    }

    .lightbox-close {
        right: 14px;
    }
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 22px;
}

@media (max-width: 700px) {
    html[dir="rtl"] .lightbox-controls {
        padding-right: 0;
        padding-left: 72px;
    }

    html[dir="rtl"] .lightbox-close {
        left: 14px;
    }
}

/* Fixed bottom lightbox controls */
.lightbox-panel {
    height: calc(100vh - 24px);
    max-height: none;
    margin: 12px auto;
}

.lightbox-media {
    height: calc(100vh - 124px);
    padding-bottom: 100px;
}

.lightbox-media img {
    max-height: calc(100vh - 140px);
}

.lightbox-controls {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 24px));
    min-height: 88px;
    border-radius: 0 0 28px 28px;
    z-index: 4;
}

.lightbox-close {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 22px;
}

@media (max-width: 700px) {
    .lightbox-panel {
        width: calc(100% - 14px);
        height: calc(100vh - 14px);
        margin: 7px auto;
    }

    .lightbox-media {
        height: calc(100vh - 112px);
        padding-bottom: 96px;
    }

    .lightbox-media img {
        max-height: calc(100vh - 126px);
    }

    .lightbox-controls {
        bottom: max(7px, env(safe-area-inset-bottom));
        width: calc(100% - 14px);
        min-height: 90px;
        padding-right: 72px;
    }

    .lightbox-close {
        right: 14px;
    }

    html[dir="rtl"] .lightbox-controls {
        padding-right: 0;
        padding-left: 72px;
    }

    html[dir="rtl"] .lightbox-close {
        left: 14px;
    }
}

.open-source-map {
    min-height: 340px;
    isolation: isolate;
    background: #071018;
}

.open-source-map::before,
.open-source-map::after {
    display: none;
}

.open-source-map .leaflet-container {
    background: #071018;
}

.open-source-map .leaflet-tile-pane {
    filter: saturate(0.72) brightness(0.74) contrast(1.08);
}

.open-source-map .leaflet-control-zoom a {
    color: var(--gold);
    background: rgba(3, 6, 10, 0.82);
    border-bottom-color: rgba(212, 175, 55, 0.22);
}

.open-source-map .leaflet-control-zoom a:hover {
    background: rgba(212, 175, 55, 0.18);
}

.open-source-map .leaflet-control-attribution,
.open-source-map .leaflet-control-scale-line {
    color: rgba(244, 241, 234, 0.76);
    background: rgba(3, 6, 10, 0.72);
    border-color: rgba(212, 175, 55, 0.22);
}

.open-source-map .leaflet-control-attribution a {
    color: var(--gold);
}

.villa-story-card {
    margin: 0 0 22px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.13), rgba(255, 255, 255, 0.045) 46%, rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 55px rgba(0, 0, 0, 0.24);
    position: relative;
    overflow: hidden;
}

.villa-story-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -88px;
    top: -96px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 68%);
    pointer-events: none;
}

.story-kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.villa-story-card h2 {
    margin: 0 0 14px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3.2vw, 3.35rem);
    line-height: 1;
    color: rgba(244, 241, 234, 0.98);
}

.villa-story-card p {
    position: relative;
    max-width: 92ch;
    margin: 0;
    color: rgba(244, 241, 234, 0.78);
    line-height: 1.85;
    font-size: 1.02rem;
}

.story-highlights {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.story-highlights span {
    padding: 10px 13px;
    border-radius: 999px;
    color: rgba(244, 241, 234, 0.9);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.23);
    font-size: 0.88rem;
}


.side-panel .villa-story-card-compact {
    margin: 18px 0 20px;
    padding: 20px;
    border-radius: 24px;
}

.side-panel .villa-story-card-compact p {
    font-size: 0.95rem;
    line-height: 1.72;
    text-align: justify;
}

.side-panel .villa-story-card-compact .story-highlights {
    gap: 8px;
    margin-top: 16px;
}

.side-panel .villa-story-card-compact .story-highlights span {
    padding: 8px 11px;
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .villa-story-card {
        border-radius: 24px;
        padding: 22px;
    }

    .villa-story-card p {
        font-size: 0.96rem;
        line-height: 1.72;
    }
}

.lightbox-controls {
    padding: 0 86px;
}

.lightbox-nav-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

html[dir="rtl"] .lightbox-nav-group {
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 700px) {
    .lightbox-controls {
        padding: 0 76px;
    }

    html[dir="rtl"] .lightbox-controls {
        padding: 0 76px;
    }
}

.whatsapp-book-button {
    gap: 10px;
}

.farm-id-badge {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(255, 255, 255, 0.035));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 0 20px rgba(212, 175, 55, 0.08);
    color: var(--text);
    letter-spacing: 0.08em;
}

.farm-id-badge span {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.farm-id-badge strong {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: end;
    word-break: break-word;
}

html[dir="rtl"] .farm-id-badge span {
    text-transform: none;
}

@media (max-width: 520px) {
    .farm-id-badge {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 22px;
    }

    .farm-id-badge strong {
        text-align: start;
    }
}

.blue-lagoon-book-button,
.blue-lagoon-more-villas-button {
    width: 100%;
    flex: 0 0 100%;
}

.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.whatsapp-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}


.collection-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2.2vw, 30px);
}

.luxury-home-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
        rgba(12, 15, 20, 0.92);
    border: 1px solid rgba(216, 177, 90, 0.16);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.luxury-home-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(216, 177, 90, 0.22), transparent 34%, rgba(255, 255, 255, 0.06));
    opacity: 0;
    transition: opacity 0.28s ease;
}

.luxury-home-card:hover::before {
    opacity: 1;
}

.luxury-home-card .image-wrap {
    aspect-ratio: 16 / 11;
}

.luxury-home-card .image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(7, 8, 11, 0.78));
    pointer-events: none;
}

.luxury-home-card .badge {
    z-index: 2;
    color: var(--gold);
    background: rgba(7, 8, 11, 0.72);
    border-color: rgba(216, 177, 90, 0.34);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.luxury-home-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(18px, 2vw, 26px);
}

.luxury-home-card .card-body h3 {
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.04;
    margin-bottom: 14px;
    color: #fff8e8;
}

.luxury-home-card .card-body p {
    margin: 14px 0 18px;
    color: rgba(244, 241, 234, 0.78);
    line-height: 1.75;
    font-size: 0.98rem;
}

.home-price-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(216, 177, 90, 0.16), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(216, 177, 90, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-price-copy {
    display: grid;
    gap: 2px;
}

.home-price-copy small {
    color: rgba(244, 241, 234, 0.58);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-price-copy strong {
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: clamp(1.12rem, 1.8vw, 1.38rem);
    line-height: 1.1;
}

.home-price-duration {
    flex: 0 0 auto;
    max-width: 118px;
    padding: 8px 10px;
    border-radius: 999px;
    text-align: center;
    color: rgba(244, 241, 234, 0.9);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    line-height: 1.25;
}

.home-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.home-feature-row span,
.card-specs .pill {
    padding: 8px 11px;
    border-radius: 999px;
    color: rgba(244, 241, 234, 0.9);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
}

.card-specs {
    margin-top: auto;
    margin-bottom: 16px;
}

.luxury-home-card .card-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.view-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #16130b;
    background: linear-gradient(135deg, #f0d68e, #bf8c2a);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .luxury-home-card .image-wrap {
        aspect-ratio: 16 / 10;
    }

    .home-price-panel,
    .luxury-home-card .card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-price-duration {
        max-width: none;
    }

    .view-details {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .luxury-home-card .card-body {
        padding: 16px;
    }

    .home-feature-row span,
    .card-specs .pill {
        width: 100%;
        text-align: center;
    }
}

.favorite-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(212, 175, 55, 0.52);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(16, 15, 13, 0.88), rgba(45, 36, 22, 0.86));
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    z-index: 4;
}

.favorite-button:hover,
.favorite-button:focus-visible {
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(244, 241, 234, 0.12));
    color: #f4ead2;
    border-color: rgba(212, 175, 55, 0.78);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(212, 175, 55, 0.10);
    outline: none;
}

.favorite-button.is-favorite {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.30), rgba(142, 111, 43, 0.24));
    color: #f7d887;
    border-color: rgba(212, 175, 55, 0.86);
}

.image-wrap,
.hero-frame {
    position: relative;
}

.home-favorite-button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    font-size: 22px;
}

.detail-favorite-button {
    position: absolute;
    top: auto;
    bottom: 1px;
    left: 50%;
    inset-inline-end: auto;
    transform: translateX(-50%);
}

.detail-favorite-button:hover,
.detail-favorite-button:focus-visible {
    transform: translateX(-50%) translateY(-2px) scale(1.04);
}

.card-footer-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.menu-favorite-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}

.menu-favorite-link:hover,
.menu-favorite-link:focus-visible {
    color: #f4ead2;
    border-color: rgba(212, 175, 55, 0.76);
    background: rgba(212, 175, 55, 0.18);
    outline: none;
}

.favorites-page-shell {
    min-height: 68vh;
}

.favorites-page-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 340px));
    justify-content: center;
    justify-items: center;
    align-items: start;
    gap: 26px;
    max-width: 1120px;
    margin: 32px auto 0;
}

.favorites-page-list .favorites-empty {
    grid-column: 1 / -1;
}

.favorites-page-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-self: center;
    width: 100%;
    max-width: 340px;
    padding: 0;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(21, 23, 27, 0.96), rgba(47, 39, 30, 0.94));
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.favorites-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.12), rgba(12, 13, 15, 0.96));
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.favorites-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.favorites-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 128px;
    padding: 20px;
}

.favorites-card-content strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

.favorites-card-content .favorites-view {
    margin-top: auto;
}

.favorites-page-card .favorites-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.favorites-page-card .favorites-view:hover,
.favorites-page-card .favorites-view:focus-visible {
    color: #fff7dd;
    border-color: rgba(212, 175, 55, 0.78);
    background: rgba(212, 175, 55, 0.18);
    outline: none;
}

.favorites-page-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.favorites-card-kicker {
    display: block;
    margin-bottom: 8px;
    color: #d8bd83;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.favorite-remove-button {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
}

.favorites-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.favorites-modal.is-visible {
    display: block;
}

.favorites-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.66);
    backdrop-filter: blur(7px);
}

.favorites-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 760px);
    max-height: min(82vh, 760px);
    overflow: auto;
    border-radius: 28px;
    padding: 26px;
    background: linear-gradient(145deg, rgba(20, 22, 27, 0.98), rgba(42, 35, 28, 0.98));
    border: 1px solid rgba(225, 203, 155, 0.28);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    color: #ffffff;
}

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.favorites-header h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 42px);
}

.favorites-kicker {
    color: #d8bd83;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.favorites-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}

.favorites-list {
    display: grid;
    gap: 14px;
}

.favorites-item {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.favorites-item img {
    width: 116px;
    height: 86px;
    object-fit: cover;
    border-radius: 16px;
}

.favorites-item strong,
.favorites-item small,
.favorites-item a {
    display: block;
}

.favorites-item small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
}

.favorites-view {
    width: fit-content;
    margin-top: 10px;
    color: #f1d390;
    font-weight: 700;
    text-decoration: none;
}

.favorites-empty {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

body.favorites-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .card-footer-actions {
        width: 100%;
        justify-content: space-between;
    }

    .card-footer-actions .view-details {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 620px) {
    .favorites-panel {
        width: min(94vw, 460px);
        padding: 20px;
        border-radius: 22px;
    }

    .favorites-item {
        grid-template-columns: 92px 1fr;
    }

    .favorites-item img {
        width: 92px;
        height: 74px;
    }

    .favorites-page-list {
        grid-template-columns: minmax(0, 340px);
        justify-content: center;
    }

    .favorites-card-media {
        aspect-ratio: 4 / 3;
    }
}

.favorites-page-list .favorites-page-card {
    grid-template-columns: 1fr;
    cursor: pointer;
    gap: 0;
    align-items: stretch;
    justify-self: center;
    width: 100%;
    max-width: 340px;
    padding: 0;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(21, 23, 27, 0.96), rgba(47, 39, 30, 0.94));
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.favorites-page-list .favorites-page-card .favorites-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
}

.favorites-page-list .favorites-page-card .favorites-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.favorites-page-list .favorites-page-card .favorites-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 128px;
    padding: 20px;
}

.favorites-card-content strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

.favorites-card-content .favorites-view {
    margin-top: auto;
}


/* Galaxy main home page */
.galaxy-home-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(216, 177, 90, 0.16), transparent 24%),
        radial-gradient(circle at 82% 28%, rgba(255, 248, 220, 0.12), transparent 22%),
        radial-gradient(circle at 50% 92%, rgba(216, 177, 90, 0.10), transparent 28%),
        #07080b;
    color: var(--cream);
    overflow-x: hidden;
}

.galaxy-home-page::before,
.galaxy-home-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.galaxy-home-page::before {
    background-image:
        radial-gradient(circle, rgba(255, 248, 220, 0.95) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(216, 177, 90, 0.75) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.7px);
    background-size: 95px 95px, 135px 135px, 190px 190px;
    background-position: 0 0, 28px 44px, 70px 20px;
    opacity: 0.55;
    animation: galaxySparkle 9s ease-in-out infinite alternate;
}

.galaxy-home-page::after {
    background:
        linear-gradient(120deg, transparent 0%, rgba(216, 177, 90, 0.10) 45%, transparent 70%),
        radial-gradient(ellipse at center, transparent 0%, rgba(7, 8, 11, 0.22) 70%);
    opacity: 0.75;
}

.galaxy-home-page .topbar,
.galaxy-home-page .jordan-flag-banner,
.galaxy-home-page main,
.galaxy-home-page footer {
    position: relative;
    z-index: 1;
}

.galaxy-home {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    padding: 90px 0 70px;
}

.galaxy-home-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(34px, 6vw, 76px);
    border: 1px solid rgba(216, 177, 90, 0.42);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(12, 13, 18, 0.92), rgba(22, 23, 32, 0.74)),
        radial-gradient(circle at 20% 15%, rgba(216, 177, 90, 0.18), transparent 28%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 248, 220, 0.14);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.galaxy-home-card::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(216, 177, 90, 0.18), transparent 64%);
    top: -180px;
    right: -150px;
}

.galaxy-home-card .kicker {
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.galaxy-home-card h1 {
    font-family: var(--display-font);
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 0.98;
    margin: 0;
    color: var(--cream);
    text-shadow: 0 0 24px rgba(216, 177, 90, 0.22);
}

.galaxy-home-card p {
    max-width: 760px;
    margin: 24px auto 0;
    color: rgba(255, 248, 220, 0.78);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.9;
}

.galaxy-home-actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.galaxy-home-actions .button {
    min-width: 180px;
    justify-content: center;
}

.galaxy-orbit {
    width: min(620px, 86vw);
    height: 1px;
    margin: 42px auto 0;
    background: linear-gradient(90deg, transparent, rgba(216, 177, 90, 0.8), transparent);
    position: relative;
}

.galaxy-orbit::before,
.galaxy-orbit::after {
    content: "";
    position: absolute;
    top: -5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 22px rgba(216, 177, 90, 0.88);
}

.galaxy-orbit::before {
    left: 18%;
}

.galaxy-orbit::after {
    right: 18%;
}

@keyframes galaxySparkle {
    0% {
        opacity: 0.38;
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        opacity: 0.72;
        transform: translate3d(0, -10px, 0) scale(1.02);
    }
}

@media (max-width: 720px) {
    .galaxy-home {
        padding: 54px 0 44px;
    }

    .galaxy-home-card {
        border-radius: 26px;
    }
}

/* Minimal galaxy home page */
.galaxy-home-only-page {
    min-height: 100vh;
    background-image: url('../images/galaxy-stars-home.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

.galaxy-home-only-page .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(7, 8, 11, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
}

.galaxy-home-only-page .topbar::after {
    display: none;
}

.galaxy-home-only-page .nav-links,
.galaxy-home-only-page .language-picker,
.galaxy-home-only-page .language-select {
    position: relative;
    z-index: 4;
}

.galaxy-home-only {
    min-height: 100vh;
    background-image: url('../images/galaxy-stars-home.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.galaxy-home-only::before {
    display: none;
}

@media (max-width: 700px) {
    .galaxy-home-only-page .topbar {
        background: rgba(7, 8, 11, 0.14);
    }

    .galaxy-home-only-page .nav-links,
    html[dir="ltr"] .galaxy-home-only-page .nav-links,
    html[dir="rtl"] .galaxy-home-only-page .nav-links {
        background: rgba(7, 8, 11, 0.14);
        backdrop-filter: blur(3px);
    }
}


.galaxy-source-credit {
    position: fixed;
    right: 18px;
    bottom: 14px;
    z-index: 4;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(7, 8, 11, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
}

.galaxy-source-credit:hover {
    color: #ffffff;
    background: rgba(7, 8, 11, 0.24);
}

html[dir="rtl"] .galaxy-source-credit {
    right: 18px;
    left: auto;
}

@media (max-width: 700px) {
    .galaxy-source-credit {
        right: 12px;
        bottom: 10px;
        font-size: 12px;
        padding: 7px 9px;
    }
}

/* Home page Jordan dropdown menu */
.home-jordan-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.home-jordan-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--gold);
    padding: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: inherit;
    text-decoration: none;
}

.home-jordan-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-inline-start: 4px solid transparent;
    border-inline-end: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 2px;
    transition: transform 0.18s ease;
}

.home-jordan-trigger:hover,
.home-jordan-trigger:focus-visible,
.home-jordan-menu.is-open .home-jordan-trigger {
    color: var(--text);
}

.home-jordan-menu.is-open .home-jordan-trigger::after {
    transform: rotate(180deg);
}

.home-jordan-panel {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-start: 0;
    min-width: 178px;
    padding: 8px 0;
    display: grid;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    border: 1px solid rgba(216, 177, 90, 0.28);
    border-radius: 14px;
    background: rgba(7, 8, 11, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    z-index: 40;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

html[dir="rtl"] .home-jordan-panel {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.home-jordan-menu.is-open .home-jordan-panel {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}

.home-jordan-panel a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 16px;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
}

.home-jordan-panel a:hover,
.home-jordan-panel a:focus-visible {
    color: var(--text);
    background: rgba(216, 177, 90, 0.14);
}

@media (max-width: 700px) {
    .home-jordan-menu {
        width: 100%;
        display: grid;
    }

    .home-jordan-trigger {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .home-jordan-panel {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        padding: 6px 0;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        backdrop-filter: none;
    }

    .home-jordan-panel a {
        justify-content: center;
        border-radius: 12px;
    }
}

/* Home Jordan menu mobile polish */
.home-jordan-trigger {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid rgba(216, 177, 90, 0.32);
    border-radius: 999px;
    background: rgba(216, 177, 90, 0.08);
    backdrop-filter: blur(12px);
    color: var(--gold);
}

@media (max-width: 700px) {
    .home-jordan-menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        gap: 0;
    }

    .home-jordan-trigger {
        width: 100%;
        min-height: 42px;
        padding: 9px 12px;
        border: 1px solid rgba(216, 177, 90, 0.32);
        border-radius: 999px;
        background: rgba(216, 177, 90, 0.08);
        backdrop-filter: blur(12px);
        color: var(--gold);
        line-height: 1.2;
    }

    .home-jordan-panel {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        padding: 6px;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .home-jordan-menu.is-open .home-jordan-panel {
        display: grid;
        gap: 6px;
    }

    .home-jordan-panel a {
        width: 100%;
        min-height: 38px;
        justify-content: center;
        text-align: center;
        border-radius: 12px;
    }
}

@media (max-width: 380px) {
    .home-jordan-trigger {
        padding: 6px 9px;
    }
}

@media (min-width: 701px) {
    .galaxy-home-page .home-jordan-trigger {
        min-height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        color: var(--gold);
        line-height: inherit;
    }

    .galaxy-home-page .home-jordan-trigger:hover,
    .galaxy-home-page .home-jordan-trigger:focus-visible,
    .galaxy-home-page .home-jordan-menu.is-open .home-jordan-trigger {
        color: var(--text);
    }
}


/* Desktop home Jordan dropdown clean style */
@media (min-width: 701px) {
    .galaxy-home-only-page .home-jordan-trigger {
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        border-radius: 0;
    }

    .galaxy-home-only-page .home-jordan-trigger:hover,
    .galaxy-home-only-page .home-jordan-trigger:focus-visible,
    .galaxy-home-only-page .home-jordan-menu.is-open .home-jordan-trigger {
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

/* Favorites page bottom footer */
.favorites-page-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.favorites-page-layout .favorites-page-shell {
    flex: 1 0 auto;
}

.favorites-page-layout .footer {
    margin-top: auto;
    flex-shrink: 0;
    text-align: center;
}

.books-hero .actions {
    margin-top: 34px;
}

/* Book favorite heart placement */
.book-cover-wrap {
    position: relative;
}

.book-cover-wrap .book-favorite-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
}

.book-detail-cover {
    position: relative;
}

.book-detail-cover .book-detail-favorite-button {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: auto;
    top: auto;
    transform: none;
}

.book-detail-cover .book-detail-favorite-button:hover,
.book-detail-cover .book-detail-favorite-button:focus-visible {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 700px) {
    .book-cover-wrap .book-favorite-button {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    .book-detail-cover .book-detail-favorite-button {
        right: 14px;
        bottom: 14px;
    }
}

/* Tablet hero alignment for chalet and books main pages */
@media (min-width: 701px) and (max-width: 1100px) {
    .home-hero .hero-grid > div:first-child {
        text-align: center;
        justify-self: center;
    }

    .home-hero h1,
    .home-hero .hero h1 {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero .actions {
        justify-content: center;
    }
}

/* Tablet hero top spacing adjustment */
@media (min-width: 701px) and (max-width: 1100px) {
    .home-hero .hero-grid {
        transform: translateY(-58px);
    }
}

body:has(.gallery-panel .hero-frame) .hero-frame .media-counter,
html[dir="rtl"] body:has(.gallery-panel .hero-frame) .hero-frame .media-counter {
    right: 16px;
    left: auto;
    bottom: 6px;
}

@media (max-width: 700px) {
    body:has(.gallery-panel .hero-frame) .hero-frame .media-counter,
    html[dir="rtl"] body:has(.gallery-panel .hero-frame) .hero-frame .media-counter {
        right: 14px;
        left: auto;
    }
}

body:has(.gallery-panel .hero-frame) .lightbox-counter {
    align-self: flex-end;
    margin-right: clamp(16px, 5vw, 86px);
    margin-left: 0;
}

html[dir="rtl"] body:has(.gallery-panel .hero-frame) .lightbox-counter {
    align-self: flex-start;
    margin-right: 0;
    margin-left: clamp(16px, 5vw, 86px);
}

@media (max-width: 700px) {
    body:has(.gallery-panel .hero-frame) .lightbox-counter {
        margin-right: 18px;
        margin-left: 0;
    }

    html[dir="rtl"] body:has(.gallery-panel .hero-frame) .lightbox-counter {
        margin-right: 0;
        margin-left: 18px;
    }
}



.lightbox-controls .lightbox-counter {
    position: absolute;
    right: 22px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    align-self: auto;
    margin: 0;
}

.lightbox-close {
    right: auto;
    left: 22px;
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 22px;
}

html[dir="rtl"] .lightbox-controls .lightbox-counter {
    right: 22px;
    left: auto;
    margin: 0;
}

@media (max-width: 700px) {
    .lightbox-controls,
    html[dir="rtl"] .lightbox-controls {
        padding: 0 76px;
    }

    .lightbox-close,
    html[dir="rtl"] .lightbox-close {
        right: auto;
        left: 14px;
    }

    .lightbox-controls .lightbox-counter,
    html[dir="rtl"] .lightbox-controls .lightbox-counter {
        right: 14px;
        left: auto;
    }
}

body:has(.gallery-panel .hero-frame) .lightbox-controls .lightbox-counter,
html[dir="rtl"] body:has(.gallery-panel .hero-frame) .lightbox-controls .lightbox-counter {
    right: 22px;
    left: auto;
    margin: 0;
    align-self: auto;
}

@media (max-width: 700px) {
    body:has(.gallery-panel .hero-frame) .lightbox-controls .lightbox-counter,
    html[dir="rtl"] body:has(.gallery-panel .hero-frame) .lightbox-controls .lightbox-counter {
        right: 14px;
        left: auto;
        margin: 0;
    }
}

body:has(.gallery-panel .hero-frame) .hero-frame .media-counter,
html[dir="rtl"] body:has(.gallery-panel .hero-frame) .hero-frame .media-counter {
    left: 16px;
    right: auto;
    bottom: 6px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body:has(.gallery-panel .hero-frame) .detail-favorite-button,
html[dir="rtl"] body:has(.gallery-panel .hero-frame) .detail-favorite-button {
    left: auto;
    right: 16px;
    bottom: 6px;
    transform: none;
}

body:has(.gallery-panel .hero-frame) .detail-favorite-button:hover,
body:has(.gallery-panel .hero-frame) .detail-favorite-button:focus-visible,
html[dir="rtl"] body:has(.gallery-panel .hero-frame) .detail-favorite-button:hover,
html[dir="rtl"] body:has(.gallery-panel .hero-frame) .detail-favorite-button:focus-visible {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 700px) {
    body:has(.gallery-panel .hero-frame) .hero-frame .media-counter,
    html[dir="rtl"] body:has(.gallery-panel .hero-frame) .hero-frame .media-counter {
        left: 14px;
        right: auto;
    }

    body:has(.gallery-panel .hero-frame) .detail-favorite-button,
    html[dir="rtl"] body:has(.gallery-panel .hero-frame) .detail-favorite-button {
        left: auto;
        right: 14px;
    }
}

body:has(.gallery-panel .hero-frame) .hero-frame .media-counter {
    direction: ltr;
    unicode-bidi: isolate;
}


.detail-desc-title {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.45rem, 2.4vw, 2.05rem);
    line-height: 1.12;
    color: rgba(244, 241, 234, 0.98);
    letter-spacing: 0.01em;
}

.side-panel > .detail-desc-title {
    margin-top: 16px;
    color: var(--gold);
}

.side-panel .villa-story-card-compact .detail-desc-title {
    position: relative;
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 1.7vw, 1.68rem);
    color: var(--gold);
}

html[dir="rtl"] .detail-desc-title {
    font-family: "Inter", sans-serif;
    line-height: 1.35;
}
