/* ═══════════════════════════════════════════════════════
   بتلات الورود v3.1 — Main CSS
   ═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
    --pink:      #c87b96;
    --pink-lt:   #f2dde7;
    --pink-dk:   #a85c78;
    --bg:        #fdf5f8;
    --bg2:       #f8eef3;
    --white:     #ffffff;
    --text:      #1a1a2e;
    --muted:     #8888aa;
    --sub:       #5a5a78;
    --border:    #ecdce5;
    --r:         18px;
    --shadow:    0 2px 20px rgba(180,80,120,.07);
    --shadow-lg: 0 8px 40px rgba(180,80,120,.14);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background: linear-gradient(150deg, #f7ecf1 0%, #ece8f7 100%);
    min-height: 100dvh;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Keyframes ─────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.84); }
    65%  { transform: scale(1.03); }
    to   { opacity: 1; transform: scale(1); }
}

/* ════════════════════════════════════════════════════
   PAGE SHELL
   ════════════════════════════════════════════════════ */

.page {
    max-width: 440px;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Desktop: proper wide layout */
@media (min-width: 860px) {
    .page {
        max-width: 100%;
        background: var(--bg);
    }
    body { background: var(--bg); }
}

/* ════════════════════════════════════════════════════
   TOPBAR
   ════════════════════════════════════════════════════ */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: rgba(253, 245, 248, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.topbar-brand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.topbar-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.topbar-title {
    font-size: 17px;
    font-weight: 500;
    color: #333333;
    text-align: center;
}

.btn-back {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(200,123,150,.1);
    flex-shrink: 0;
    transition: background .15s, transform .12s;
}
.btn-back:active { transform: scale(.88); background: rgba(200,123,150,.22); }

@media (min-width: 860px) {
    .topbar {
        padding: 16px max(32px, calc((100% - 1100px) / 2 + 32px));
    }
    .topbar-brand { justify-content: flex-start; }
    .topbar-title { font-size: 20px; }
    .topbar-logo-img { width: 34px; height: 34px; border-radius: 8px; }
}

/* ════════════════════════════════════════════════════
   MAIN CONTENT WRAPPER
   ════════════════════════════════════════════════════ */

.main-content { flex: 1; }

/* ════════════════════════════════════════════════════
   SECTION CARDS
   ════════════════════════════════════════════════════ */

.sec-list {
    padding: 14px 14px 32px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.sec-card {
    opacity: 0;
    animation: fadeUp .42s cubic-bezier(.22,1,.36,1) var(--delay,0s) both;
}

.sec-card-link {
    display: block;
    background: #e6e6e6;
    border-radius: var(--r);
    border: 1px solid #e6e6e6;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.sec-card-link:active { transform: scale(.972); box-shadow: none; }

.sec-card-inner {
    display: flex;
    align-items: stretch;
    min-height: 108px;
}

.sec-card-text {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.sec-card-name {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    line-height: 1.3;
}

.sec-card-desc {
    font-size: 13px;
    color: var(--sub);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sec-card-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.sec-card-img {
    width: 118px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg2);
}
.sec-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.sec-card-link:hover .sec-card-img img { transform: scale(1.05); }

.sec-card-ph {
    width: 100%; height: 100%; min-height: 108px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, var(--pink-lt), #f0e8ff);
}

/* ── Desktop grid ──────────────────────────────────── */
@media (min-width: 860px) {
    .sec-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 1100px;
        margin: 0 auto;
        padding: 28px 32px 48px;
    }
    .sec-card-inner { min-height: 130px; }
    .sec-card-name  { font-size: 20px; }
    .sec-card-desc  { font-size: 14px; }
    .sec-card-img   { width: 150px; }
    .sec-card-link:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
}
@media (min-width: 1200px) {
    .sec-list { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════
   MASONRY GALLERY
   ════════════════════════════════════════════════════ */

.gallery {
    columns: 2;
    column-gap: 8px;
    padding: 12px 12px 48px;
}

.g-item {
    position: relative;            /* للسماح بـ overlay السعر */
    break-inside: avoid;
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn .4s ease both;
    transition: opacity .15s;
}
.g-item:active { opacity: .8; }
.g-item img { width: 100%; height: auto; display: block; }

/* ── شارة السعر فوق الصورة (اختيارية) ─────────────── */
.g-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pink-dk);
    font-family: 'Tajawal', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(200, 123, 150, .18);
    box-shadow: 0 2px 10px rgba(180, 80, 120, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 1.2;
    pointer-events: none;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    z-index: 2;
}

@media (min-width: 540px) { .gallery { columns: 3; } }

@media (min-width: 860px) {
    .gallery {
        columns: 4;
        column-gap: 12px;
        padding: 24px 32px 64px;
        max-width: 1100px;
        margin: 0 auto;
    }
    .g-item { margin-bottom: 12px; border-radius: 14px; }
    .g-item:hover { opacity: .88; }
    .g-price {
        bottom: 10px;
        right: 10px;
        font-size: 13.5px;
        padding: 6px 13px;
    }
}
@media (min-width: 1200px) { .gallery { columns: 5; } }

/* ════════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════════ */

.lb-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(8, 6, 12, .97);
    display: none;
    align-items: center;
    justify-content: center;
}
.lb-overlay.lb-open { display: flex; animation: fadeIn .18s ease; }

.lb-img {
    max-width: 92vw;
    max-height: 86dvh;
    object-fit: contain;
    border-radius: 4px;
    animation: scaleIn .26s cubic-bezier(.34,1.56,.64,1);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.lb-btn {
    position: absolute;
    background: rgba(255,255,255,.13);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.lb-btn:active { background: rgba(255,255,255,.28); }

.lb-close {
    top: 18px; left: 18px;
    width: 42px; height: 42px;
    font-size: 18px; line-height: 1;
}

.lb-prev, .lb-next {
    top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
}
.lb-prev { right: 14px; }
.lb-next { left:  14px; }
.lb-prev svg, .lb-next svg { width: 22px; height: 22px; }

.lb-counter {
    position: absolute; bottom: 20px;
    left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.42);
    font-size: 13px; font-family: 'Tajawal', sans-serif;
    pointer-events: none; white-space: nowrap;
}

/* سعر داخل الـ Lightbox (اختياري) */
.lb-price {
    position: absolute;
    top: 22px;
    right: 22px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    line-height: 1.2;
    pointer-events: none;
    max-width: calc(100vw - 80px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    display: none;          /* مخفي افتراضياً، يظهر فقط لو كان هناك سعر */
}
.lb-price.lb-price-show { display: block; animation: fadeIn .2s ease; }

@media (min-width: 860px) {
    .lb-prev { right: 28px; }
    .lb-next { left: 28px; }
    .lb-prev, .lb-next { width: 58px; height: 58px; }
    .lb-price {
        top: 28px;
        right: 28px;
        font-size: 15px;
        padding: 9px 18px;
    }
}

/* ════════════════════════════════════════════════════
   SPLASH PAGE
   ════════════════════════════════════════════════════ */

.splash-page {
    background: #fbeaf1;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.blob-tr {
    width: 280px; height: 280px; top: -90px; right: -90px;
    background: radial-gradient(circle, #f0d5db 0%, transparent 68%);
}
.blob-bl {
    width: 220px; height: 220px; bottom: -70px; left: -70px;
    background: radial-gradient(circle, #e0d5f4 0%, transparent 68%);
}

.splash-body {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px; text-align: center;
    padding-top: 32px;
    position: relative; z-index: 1;
    animation: fadeUp .65s cubic-bezier(.22,1,.36,1) .08s both;
}

.splash-logo { margin-bottom: 6px; }
.rose-svg { width: 78px; height: auto; }
.splash-logo .custom-logo-link img { width: 90px; height: auto; border-radius: 16px; }

.splash-name {
    font-size: 34px; font-weight: 900;
    color: var(--text); letter-spacing: -.5px;
}

.splash-tag {
    font-size: 15px; color: var(--muted);
    line-height: 1.7; max-width: 272px;
}

.splash-foot {
    padding: 32px 0 54px; width: 100%;
    position: relative; z-index: 1;
    animation: fadeUp .65s cubic-bezier(.22,1,.36,1) .22s both;
}

.btn-start {
    display: block; width: 100%;
    padding: 17px 32px;
    background: #fd7ea0;
    color: #fff; border-radius: 50px;
    font-size: 17px; font-weight: 700; text-align: center;
    box-shadow: 0 6px 26px rgba(253,126,160,.30);
    transition: transform .14s, box-shadow .14s;
}
.btn-start:active { transform: scale(.965); box-shadow: 0 3px 12px rgba(253,126,160,.24); }

/* Desktop splash */
@media (min-width: 860px) {
    .splash-page { max-width: 100%; padding: 0 80px; }
    .blob-tr { width: 480px; height: 480px; top: -150px; right: -150px; }
    .blob-bl { width: 380px; height: 380px; bottom: -120px; left: -120px; }
    .rose-svg { width: 106px; }
    .splash-name { font-size: 52px; }
    .splash-tag  { font-size: 17px; max-width: 390px; }
    .splash-foot { max-width: 360px; margin: 0 auto; }
}

/* ════════════════════════════════════════════════════
   SITE FOOTER
   ════════════════════════════════════════════════════ */

.site-footer {
    margin-top: auto;
    padding: 24px 18px 44px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; gap: 16px;
}

.wa-link {
    display: flex; align-items: center; gap: 9px;
    padding: 13px 26px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 15px; font-weight: 600;
    color: #128C7E;
    box-shadow: 0 2px 14px rgba(0,0,0,.05);
    transition: transform .14s, box-shadow .14s;
}
.wa-link:active { transform: scale(.96); }
.wa-link:hover  { box-shadow: 0 4px 18px rgba(37,211,102,.18); }

.footer-nav {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 6px 14px;
}
.footer-nav a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-nav a:hover { color: var(--pink); }

.footer-copy {
    font-size: 12px; color: var(--muted); text-align: center;
}

@media (min-width: 860px) {
    .site-footer {
        padding: 36px max(32px, calc((100% - 1100px) / 2 + 32px)) 56px;
        flex-direction: row; justify-content: space-between;
        flex-wrap: wrap; align-items: center;
    }
}

/* ════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════ */

.empty-state {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 80px 32px; gap: 14px;
    color: var(--muted); text-align: center;
}
.empty-state p:first-child { font-size: 52px; }
.empty-state p { font-size: 15px; }


/* ════════════════════════════════════════════════════
   SPLASH LOGO (custom image)
   ════════════════════════════════════════════════════ */

/* شعار مرفوع من الإعدادات */
.splash-logo-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 20px;
    display: block;
}

/* شعار WordPress Customizer */
.splash-logo .custom-logo-link {
    display: block;
}
.splash-logo .custom-logo-link img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 20px;
}
.splash-logo .custom-logo-link:hover {
    opacity: 1;
}

@media (min-width: 860px) {
    .splash-logo-img { width: 160px; height: 160px; }
    .splash-logo .custom-logo-link img { width: 160px; height: 160px; }
}

/* ════════════════════════════════════════════════════
   ARCHIVE HERO
   ════════════════════════════════════════════════════ */

.archive-hero {
    /* Grid trick: image and overlay share same cell — overlay guaranteed ON image */
    display: grid;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 200px;
}

.archive-hero-img {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.archive-hero-overlay {
    /* sits ON TOP of image via grid stacking */
    grid-column: 1;
    grid-row: 1;
    background: linear-gradient(
        to top,
        rgba(15, 8, 14, 0.78) 0%,
        rgba(15, 8, 14, 0.20) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 22px 20px;
    z-index: 1;
}

.archive-hero-sub {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.3px;
    font-style: italic;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
    max-width: 290px;
    text-align: center;
    width: 100%;
}

/* Desktop: full-width tall hero */
@media (min-width: 860px) {
    .archive-hero {
        min-height: 520px;
        max-height: 680px;
        height: 55vw;
        max-height: 680px;
    }
    .archive-hero-img {
        min-height: 520px;
        height: 100%;
    }
    .archive-hero-overlay {
        padding: 48px clamp(48px, 6vw, 100px);
        justify-content: center;
    }
    .archive-hero-sub {
        font-size: 22px;
        font-weight: 300;
        max-width: 600px;
        letter-spacing: 0.6px;
        text-align: center;
    }
}



/* ════════════════════════════════════════════════════
   SOCIAL BAR
   ════════════════════════════════════════════════════ */

.social-bar {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    direction: ltr;
}

.social-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--social-color, var(--bg));
    border: 1.5px solid transparent;
    color: #fff;
    transition: background .18s, color .18s, border-color .18s, transform .15s;
    flex-shrink: 0;
}

.social-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-shrink: 0;
    display: block;
}

.social-btn--snapchat {
    color: #000;
}

.social-btn--has-label {
    width: auto;
    min-width: 56px;
    height: auto;
    min-height: 52px;
    padding: 7px 9px 6px;
    border-radius: 14px;
}

.social-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    direction: ltr;
}

.social-btn:active {
    transform: scale(.9);
}

.social-btn:hover {
    background: var(--social-color, var(--pink));
    border-color: transparent;
}

/* Snapchat special — dark icon on yellow */
.social-btn--snapchat:hover {
    color: #000;
}

@media (min-width: 860px) {
    .social-bar {
        padding: 18px max(32px, calc((100% - 1100px) / 2 + 32px));
        justify-content: space-between;
        gap: 14px;
    }
    .social-left { gap: 14px; }
    .social-btn {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }
    .social-btn svg { width: 22px; height: 22px; }
    .social-btn--has-label { width: auto; height: auto; min-width: 62px; min-height: 56px; }
}

/* ════════════════════════════════════════════════════
   BOOKING RULES
   ════════════════════════════════════════════════════ */

.booking-rules {
    margin: 0 14px 28px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 20px 20px 22px;
    box-shadow: var(--shadow);
}

.booking-rules-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.booking-rules-icon { font-size: 17px; }

.booking-rules-list {
    list-style: none;
    counter-reset: rules;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-rules-list li {
    counter-increment: rules;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--sub);                    /* تصحيح: كان var(--text-sub) غير معرّف */
    line-height: 1.6;
}

.booking-rules-list li::before {
    content: counter(rules);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--pink-lt);
    color: var(--pink);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

@media (min-width: 860px) {
    .booking-rules {
        max-width: 1100px;
        margin: 0 auto 40px;
        padding: 26px 32px 28px;
    }
    .booking-rules-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 32px;
    }
    .booking-rules-list li { font-size: 14px; }
}

/* ════════════════════════════════════════════════════
   PAGE TRANSITION
   ════════════════════════════════════════════════════ */

.leaving {
    opacity: 0 !important;
    transform: translateY(8px) !important;
    transition: opacity .18s ease, transform .18s ease !important;
}

/* ════════════════════════════════════════════════════
   MISC
   ════════════════════════════════════════════════════ */

::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pink-lt); border-radius: 4px; }

/* WP admin bar fix */
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
