/* ============ الصفحة الرئيسية ودليل الأعراس ============ */

/* ---------- شبكة البطاقات ---------- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 22px;
    margin-bottom: 20px;
}
.grid-cards .card-img-wrapper { height: 190px; display: block; overflow: hidden; }
.grid-cards .card-content { padding: 18px; }
.grid-cards .card-content h3 { font-size: 1.12rem; line-height: 1.4; }
.grid-cards .card-details { margin-bottom: 14px; }

.badge-featured {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: linear-gradient(135deg, #f3cf6a, var(--accent-gold)); color: var(--bg-dark);
    padding: 4px 11px; border-radius: 50px; font-size: .78rem; font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.badge-status { z-index: 2; }
.media-count {
    position: absolute; bottom: 14px; right: 14px; z-index: 2;
    background: rgba(6, 26, 36, .8); color: #fff; padding: 4px 10px;
    border-radius: 8px; font-size: .8rem; font-weight: 700;
}
.card-fee { z-index: 2; }
.countdown {
    margin-inline-start: auto; background: rgba(217, 164, 65, .15); color: var(--accent-gold);
    padding: 1px 9px; border-radius: 50px; font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.seats { margin-bottom: 14px; }
.seats-bar { height: 7px; background: var(--bg-slate); border-radius: 50px; overflow: hidden; margin-bottom: 4px; }
.seats-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-green), #3fbf7f); }
.seats small { color: var(--text-muted); font-size: .78rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 50px; font-size: .76rem; font-weight: 600;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--border-glass); color: var(--text-muted);
}
.chip i { color: var(--accent-gold); font-size: .75rem; }
.chip.more { color: var(--accent-gold); }

.dir-placeholder { width: 100%; height: 100%; }

/* ---------- الواجهة والبحث السريع ---------- */
.home-hero {
    text-align: center; padding: 70px 20px 90px;
    background: radial-gradient(ellipse at top, rgba(217, 164, 65, .18), transparent 60%),
                linear-gradient(160deg, var(--bg-slate), var(--bg-dark));
    border: 1px solid var(--border-glass); border-radius: var(--radius-premium);
}
.home-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.home-hero h1 span { color: var(--accent-gold); }
.home-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.slider-container { margin-bottom: 0; }
button.slider-arrow { border: 0; cursor: pointer; font-family: inherit; }

.home-search {
    position: relative; z-index: 5;
    margin: -50px auto 40px; max-width: 1060px; padding: 20px 22px 22px;
    background: rgba(10, 37, 51, .92); backdrop-filter: blur(16px);
    border: 1px solid rgba(217, 164, 65, .25); border-radius: var(--radius-premium);
    box-shadow: var(--shadow-premium);
}
.home-search-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.home-search-tab input { position: absolute; opacity: 0; pointer-events: none; }
.home-search-tab span {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 8px 15px; border-radius: 50px; font-weight: 700; font-size: .9rem;
    border: 1px solid var(--border-glass); color: var(--text-muted); transition: var(--transition-smooth);
}
.home-search-tab span:hover { color: var(--text-white); }
.home-search-tab input:checked + span { background: var(--accent-gold); color: var(--bg-dark); border-color: var(--accent-gold); }
.home-search-tab input:focus-visible + span { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.home-search-fields { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 14px; align-items: end; }
.home-search-fields .form-group { margin-bottom: 0; }
.home-search-fields .btn-submit { width: auto; padding: 13px 26px; white-space: nowrap; }
.home-search select.form-control, .wedding-filter select.form-control, .filter-panel select.form-control { background-color: var(--bg-slate); color: var(--text-white); }

.stats-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 50px;
}
.stats-strip div {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px;
    background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-premium);
}
.stats-strip i { color: var(--accent-gold); font-size: 1.3rem; margin-bottom: 4px; }
.stats-strip strong { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.stats-strip span { color: var(--text-muted); font-size: .85rem; }

/* ---------- عناوين الأقسام ---------- */
.home-section { margin-bottom: 50px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head .section-title { margin-bottom: 0; font-size: 1.55rem; }
.see-all { color: var(--accent-gold); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.see-all:hover { text-decoration: underline; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.cat-tile {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 24px 12px; text-decoration: none; color: var(--text-white);
    background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-premium);
    transition: var(--transition-smooth);
}
.cat-tile i { font-size: 2rem; color: var(--accent-gold); margin-bottom: 4px; }
.cat-tile strong { font-size: 1rem; }
.cat-tile small { color: var(--text-muted); }
.cat-tile:hover { border-color: var(--accent-gold); transform: translateY(-4px); }

.wedding-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }
.wedding-filter select { flex: 1 1 180px; width: auto; }
.wedding-filter .btn-submit { width: auto; padding: 12px 22px; text-decoration: none; text-align: center; }
.sub-title { font-size: 1.15rem; font-weight: 800; margin: 10px 0 16px; display: flex; align-items: center; gap: 10px; color: var(--accent-gold); }
.sub-title.upcoming { color: var(--text-white); }
.sub-title.past { color: #5fc792; }
.sub-title span { font-size: .8rem; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 50px; padding: 1px 10px; color: var(--text-muted); }
.empty-note { color: var(--text-muted); margin-bottom: 30px; padding: 16px; border: 1px dashed var(--border-glass); border-radius: 12px; text-align: center; }

/* ---------- صفحة البحث والفلاتر ---------- */
.dir-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; align-items: start; }
.filter-panel {
    position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto;
    background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-premium); padding: 18px;
}
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filter-head h2 { font-size: 1.05rem; font-weight: 800; }
.filter-head h2 i { color: var(--accent-gold); }
.filter-reset { color: var(--primary-red); font-size: .82rem; font-weight: 700; text-decoration: none; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--border-glass); }
.filter-group label, .filter-label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 8px; }
.filter-group .form-control { padding: 10px 12px; }
.filter-panel .btn-submit { margin-top: 6px; }

.pill-options { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-options label { margin: 0; font-weight: 600; }
.pill-options input { position: absolute; opacity: 0; pointer-events: none; }
.pill-options span {
    display: inline-block; padding: 5px 11px; border-radius: 50px; font-size: .8rem; cursor: pointer;
    border: 1px solid var(--border-glass); color: var(--text-muted);
}
.pill-options input:checked + span { background: var(--accent-gold); color: var(--bg-dark); border-color: var(--accent-gold); font-weight: 700; }
.pill-options input:focus-visible + span { outline: 2px solid var(--accent-gold); }

.range-input { display: flex; align-items: center; gap: 8px; }
.range-input span { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }

.check-options { display: flex; flex-direction: column; gap: 4px; }
.check-options label {
    display: flex; align-items: center; gap: 9px; margin: 0; padding: 6px 8px; border-radius: 8px;
    font-weight: 500; font-size: .88rem; cursor: pointer;
}
.check-options label:hover { background: rgba(255, 255, 255, .04); }
.check-options input { accent-color: var(--accent-gold); width: 16px; height: 16px; }
.check-options i { color: var(--accent-gold); width: 16px; text-align: center; font-size: .85rem; }
.check-options label:has(input:checked) { color: var(--accent-gold); font-weight: 700; }

.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar strong { flex: 1; }
.sort-select { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .88rem; }
.sort-select select { background: var(--bg-slate); color: var(--text-white); border: 1px solid var(--border-glass); border-radius: 8px; padding: 7px 10px; font-family: inherit; }
.btn-filter-toggle {
    display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
    background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-white); font-family: inherit; font-weight: 700;
}
.btn-filter-toggle span { background: var(--accent-gold); color: var(--bg-dark); border-radius: 50px; padding: 0 7px; font-size: .75rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.active-filters .chip { color: var(--text-white); }

.empty-results { text-align: center; padding: 60px 20px; background: var(--bg-glass); border: 1px dashed var(--border-glass); border-radius: var(--radius-premium); }
.empty-results i { font-size: 2.6rem; color: var(--accent-gold); margin-bottom: 12px; }
.empty-results h3 { margin-bottom: 6px; }
.empty-results p { color: var(--text-muted); margin-bottom: 16px; }

/* ---------- صفحة التفاصيل ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); text-decoration: none; margin-bottom: 14px; font-weight: 600; }
.back-link:hover { color: var(--accent-gold); }
.item-head h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-head p { color: var(--text-muted); margin-bottom: 18px; }
.item-head p i { color: var(--accent-gold); }
.badge-inline { font-size: .8rem; background: var(--accent-gold); color: var(--bg-dark); padding: 3px 12px; border-radius: 50px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-bottom: 26px; }
.spec { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border-glass); }
.spec span { display: block; color: var(--text-muted); font-size: .8rem; margin-bottom: 2px; }
.spec strong { font-size: 1.05rem; }

.amenity-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.amenity-full span { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; border: 1px solid var(--border-glass); }
.amenity-full span i:first-child { width: 18px; text-align: center; }
.amenity-full .state { margin-inline-start: auto; }
.amenity-full .yes { background: rgba(47, 125, 74, .1); border-color: rgba(47, 125, 74, .35); }
.amenity-full .yes i { color: #5fd79a; }
.amenity-full .no { color: var(--text-muted); opacity: .55; }

.contact-card { margin: 0; padding: 26px; max-width: 100%; text-align: center; position: sticky; top: 100px; }
.contact-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; }
.contact-card h3 i { color: var(--accent-gold); }
.contact-card .btn-submit { display: block; text-decoration: none; margin-bottom: 10px; }
.contact-card .btn-wa { background: #25d366; color: #fff; }
.contact-card .note { color: var(--text-muted); margin-top: 10px; font-size: .8rem; }

/* ---------- المعرض ---------- */
.gallery-mosaic {
    display: grid; gap: 8px; height: 420px; margin-bottom: 10px;
    grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
    border-radius: var(--radius-premium); overflow: hidden;
}
.gallery-mosaic.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery-mosaic.count-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.gallery-mosaic.count-3 { grid-template-columns: 2fr 1fr; }
.gallery-mosaic.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery-mosaic.count-4 .gallery-tile:nth-child(4) { grid-column: span 2; }
.gallery-tile { position: relative; border: 0; padding: 0; cursor: pointer; background: var(--bg-slate); overflow: hidden; }
.gallery-tile:first-child { grid-row: 1 / -1; }
.gallery-tile img, .gallery-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery-tile:hover img, .gallery-tile:hover video { transform: scale(1.04); }
.gallery-tile:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: -3px; }
.play-icon {
    position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.2rem;
}
.more-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.8rem; font-weight: 800; }
.gallery-meta { display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: .88rem; margin-bottom: 26px; flex-wrap: wrap; }
.gallery-meta i { color: var(--accent-gold); }
.gallery-meta button { margin-inline-start: auto; background: none; border: 1px solid var(--border-glass); color: var(--text-white); padding: 6px 14px; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 700; }
.gallery-meta button:hover { border-color: var(--accent-gold); }
.gallery-empty { height: 260px; border-radius: var(--radius-premium); margin-bottom: 26px; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(3, 14, 20, .95); display: grid; grid-template-rows: 1fr auto auto; padding: 50px 70px 16px; }
.lightbox[hidden] { display: none; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-stage iframe { width: min(100%, 1000px); aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.lb-caption { text-align: center; color: var(--text-muted); padding: 10px; font-size: .9rem; }
.lb-thumbs { display: flex; gap: 6px; justify-content: center; overflow-x: auto; padding-bottom: 4px; }
.lb-thumbs button { flex: 0 0 64px; height: 46px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-slate); color: var(--text-muted); cursor: pointer; opacity: .6; }
.lb-thumbs button.active { border-color: var(--accent-gold); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; font-size: 1.1rem; }
.lb-close:hover, .lb-nav:hover { background: var(--accent-gold); color: var(--bg-dark); }
.lb-close { top: 12px; left: 12px; }
.lb-nav { top: 45%; }
.lb-prev { right: 12px; }
.lb-next { left: 12px; }

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 992px) {
    .dir-layout { grid-template-columns: 1fr; }
    .filter-panel { display: none; position: static; max-height: none; }
    .filter-panel.open { display: block; }
    .btn-filter-toggle { display: inline-flex; }
    .home-search-fields { grid-template-columns: 1fr 1fr; }
    .home-search-fields .form-group:first-child { grid-column: 1 / -1; }
    .contact-card { position: static; }
}

@media (max-width: 640px) {
    .home-search { margin-top: -30px; padding: 16px; }
    .home-search-fields { grid-template-columns: 1fr; }
    .home-search-fields .btn-submit { width: 100%; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .gallery-mosaic { height: 260px; grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
    .gallery-mosaic .gallery-tile:first-child { grid-column: 1 / -1; grid-row: auto; }
    .gallery-mosaic .gallery-tile:nth-child(n+4) { display: none; }
    .gallery-mosaic.count-1 { grid-template-rows: 1fr; }
    .lightbox { padding: 50px 8px 12px; }
    .lb-nav { top: auto; bottom: 80px; }
    .section-head .section-title { font-size: 1.25rem; }
}

/* ---------- شريط المميزات ---------- */
.featured-strip { margin-top: 0; }
.strip-nav { display: flex; gap: 6px; }
.strip-nav button {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-white);
}
.strip-nav button:hover { background: var(--accent-gold); color: var(--bg-dark); border-color: var(--accent-gold); }
.strip-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 260px); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px;
    scrollbar-width: thin; scrollbar-color: var(--accent-gold) transparent;
}
.strip-card {
    scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: var(--text-white);
    background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-premium);
    overflow: hidden; transition: var(--transition-smooth);
}
.strip-card:hover { border-color: var(--accent-gold); transform: translateY(-4px); }
.strip-card.is-wedding { border-color: rgba(217, 164, 65, .45); }
.strip-img { position: relative; height: 150px; background: var(--bg-slate); }
.strip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-img .dir-placeholder { font-size: 2.4rem; }
.strip-type {
    position: absolute; top: 10px; right: 10px; background: rgba(6, 26, 36, .85); color: var(--accent-gold);
    padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700;
}
.is-wedding .strip-type { background: var(--accent-gold); color: var(--bg-dark); }
.strip-price {
    position: absolute; bottom: 10px; left: 10px; background: rgba(6, 26, 36, .85); color: var(--accent-gold);
    padding: 3px 10px; border-radius: 8px; font-size: .8rem; font-weight: 800;
}
.strip-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.strip-body strong { font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip-body small { color: var(--text-muted); font-size: .8rem; }
.strip-body small i { color: var(--accent-gold); }
.muted-note { color: var(--text-muted); font-size: .88rem; }

/* ---------- أزرار المشاركة ---------- */
.share-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.share-label { color: var(--text-muted); font-size: .88rem; font-weight: 700; margin-inline-end: 4px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 50px;
    font-family: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; text-decoration: none;
    background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-white);
    transition: var(--transition-smooth);
}
.share-btn i { font-size: 1rem; }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; }
.share-btn.x:hover { background: #000; border-color: #444; }
.share-btn.copy:hover, .share-btn.native:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.share-btn.copied { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.share-btn[hidden] { display: none; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.item-head .share-box { margin-top: 8px; }

@media (max-width: 640px) {
    .share-btn span { display: none; }
    .share-btn { padding: 9px 12px; }
    .strip-track { grid-auto-columns: 78%; }
}
