/* ===== دليل الرياض — الهوية البصرية (أخضر + ذهبي، طابع بشري أنيق) ===== */

:root {
    --rgs-primary: #073E35;
    --rgs-primary-soft: #0F5A4C;
    --rgs-accent: #D9A441;
    --rgs-accent-deep: #B8862A;
    --rgs-cream: #F8F3EA;
    --rgs-ink: #1c1a15;
    --rgs-muted: #7c766a;
    --rgs-line: #e7dfce;
    --rgs-white: #ffffff;
    --rgs-radius: 16px;
    --rgs-radius-sm: 10px;
    --rgs-shadow: 0 4px 20px rgba(7, 62, 53, 0.07);
    --rgs-shadow-lg: 0 12px 40px rgba(7, 62, 53, 0.12);
    --rgs-font: "Tajawal", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.rgs-theme {
    margin: 0;
    font-family: var(--rgs-font);
    color: var(--rgs-ink);
    background: var(--rgs-cream);
    line-height: 1.7;
    direction: rtl;
}

.rgs-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.rgs-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rgs-accent);
    letter-spacing: .5px;
    margin-bottom: 10px;
}

/* ===== الأزرار ===== */
.rgs-gold-btn {
    display: inline-block;
    background: var(--rgs-accent);
    color: var(--rgs-primary);
    font-weight: 700;
    padding: 11px 22px;
    border-radius: var(--rgs-radius-sm);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    transition: transform .15s ease, background .15s ease;
}
.rgs-gold-btn:hover { background: var(--rgs-accent-deep); transform: translateY(-1px); }

.rgs-outline-btn {
    display: inline-block;
    border: 1.5px solid var(--rgs-primary);
    color: var(--rgs-primary);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--rgs-radius-sm);
    transition: background .15s ease, color .15s ease;
}
.rgs-outline-btn:hover { background: var(--rgs-primary); color: var(--rgs-white); }

.rgs-link-btn { color: var(--rgs-white); font-size: 14px; font-weight: 600; }

/* ===== الهيدر ===== */
.rgs-header {
    background: var(--rgs-primary);
    position: sticky;
    top: 0;
    z-index: 50;
}
.rgs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 68px;
}
.rgs-brand { display: flex; align-items: center; gap: 8px; color: var(--rgs-white); font-size: 21px; font-weight: 800; }
.rgs-brand i { width: 9px; height: 9px; background: var(--rgs-accent); border-radius: 50%; display: inline-block; }
.rgs-brand img { max-height: 42px; width: auto; }
.rgs-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.rgs-nav a { color: rgba(255,255,255,.9); font-size: 15px; font-weight: 500; transition: color .15s; }
.rgs-nav a:hover { color: var(--rgs-accent); }
.rgs-header-actions { display: flex; align-items: center; gap: 14px; }
.rgs-menu-toggle { display: none; background: none; border: none; color: var(--rgs-white); font-size: 24px; cursor: pointer; }

/* ===== واجهة البداية (Hero) ===== */
.rgs-hero {
    position: relative;
    background: linear-gradient(120deg, var(--rgs-primary), var(--rgs-primary-soft));
    background-size: cover;
    background-position: center;
    color: var(--rgs-white);
    padding: 92px 0 84px;
    overflow: hidden;
}
.rgs-hero-pattern {
    position: absolute; inset: 0;
    opacity: .12;
    background-image:
        radial-gradient(circle at 80% 25%, var(--rgs-accent) 0 3px, transparent 3px),
        radial-gradient(circle at 15% 70%, var(--rgs-accent) 0 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, #fff 0 1px, transparent 1px);
    background-size: 110px 110px, 80px 80px, 46px 46px;
}
.rgs-hero-content { position: relative; max-width: 680px; }
.rgs-hero h1 { font-size: 40px; font-weight: 800; line-height: 1.35; margin: 0 0 14px; }
.rgs-hero p { font-size: 17px; color: #d7e6e0; margin: 0 0 28px; max-width: 560px; }

.rgs-search {
    display: flex; gap: 8px; background: var(--rgs-white);
    padding: 8px; border-radius: 14px; max-width: 620px;
    box-shadow: var(--rgs-shadow-lg); flex-wrap: wrap;
}
.rgs-search-field { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.rgs-search-field span { color: var(--rgs-primary); font-size: 20px; }
.rgs-search input {
    flex: 1; border: none; outline: none; font-family: inherit;
    font-size: 15px; padding: 12px 0; background: transparent; color: var(--rgs-ink);
}
.rgs-search select {
    border: none; border-right: 1px solid var(--rgs-line); outline: none;
    font-family: inherit; font-size: 14px; padding: 0 12px; background: transparent;
    color: var(--rgs-ink); cursor: pointer;
}
.rgs-search button {
    background: var(--rgs-accent); color: var(--rgs-primary); border: none;
    font-family: inherit; font-weight: 700; font-size: 15px; padding: 12px 28px;
    border-radius: var(--rgs-radius-sm); cursor: pointer; transition: background .15s;
}
.rgs-search button:hover { background: var(--rgs-accent-deep); }

.rgs-hero-marks { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.rgs-hero-marks div { display: flex; flex-direction: column; }
.rgs-hero-marks strong { font-size: 22px; color: var(--rgs-accent); }
.rgs-hero-marks span { font-size: 13px; color: #cfe0da; }
.rgs-hero-marks i { width: 1px; height: 34px; background: rgba(255,255,255,.25); }

/* ===== الأقسام ===== */
.rgs-section { padding: 60px 0; }
.rgs-section-title { margin-bottom: 34px; }
.rgs-section-title.rgs-center { text-align: center; }
.rgs-section-title span { color: var(--rgs-accent); font-weight: 700; font-size: 14px; }
.rgs-section-title h2 { font-size: 30px; font-weight: 800; margin: 6px 0 0; color: var(--rgs-primary); }

.rgs-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.rgs-section-head h2 { font-size: 27px; font-weight: 800; margin: 0; color: var(--rgs-primary); }
.rgs-section-head p { margin: 4px 0 0; color: var(--rgs-muted); font-size: 15px; }
.rgs-section-head a { color: var(--rgs-primary); font-weight: 700; font-size: 15px; }

/* ===== شبكة التصنيفات ===== */
.rgs-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.rgs-category-card {
    background: var(--rgs-white); border: 1px solid var(--rgs-line);
    border-radius: var(--rgs-radius); padding: 24px 18px; text-align: center;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.rgs-category-card:hover { transform: translateY(-3px); box-shadow: var(--rgs-shadow); border-color: var(--rgs-accent); }
.rgs-category-card span { font-size: 28px; color: var(--rgs-accent); display: block; margin-bottom: 8px; }
.rgs-category-card strong { font-size: 16px; color: var(--rgs-primary); font-weight: 700; }

/* ===== أيقونة بطاقة التصنيف ===== */
.rgs-category-card .rgs-cat-icon{
    display:inline-flex;align-items:center;justify-content:center;
    width:56px;height:56px;margin:0 auto 12px;
    background:linear-gradient(135deg,rgba(217,164,65,.16),rgba(7,62,53,.08));
    border-radius:16px;color:var(--rgs-primary);
    transition:transform .18s ease,background .18s ease;
}
.rgs-category-card .rgs-cat-icon svg{width:28px;height:28px;}
.rgs-category-card:hover .rgs-cat-icon{
    background:linear-gradient(135deg,var(--rgs-accent),var(--rgs-accent-deep));
    color:#fff;transform:scale(1.08);
}



/* ===== رأس البطاقة النصي (اسم المطعم بدل الصورة) ===== */
.rgs-card-namehead {
    position: relative;
    padding: 30px 20px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 130px;
    background:
        radial-gradient(circle at 22% 28%, rgba(217,164,65,.18) 0 3px, transparent 3px),
        radial-gradient(circle at 80% 70%, rgba(217,164,65,.14) 0 2px, transparent 2px),
        linear-gradient(135deg, var(--rgs-primary), var(--rgs-primary-soft));
    background-size: 90px 90px, 70px 70px, cover;
    overflow: hidden;
}
.rgs-card-namehead::before {
    content: "";
    position: absolute; inset: 10px;
    border: 1px solid rgba(217,164,65,.32);
    border-radius: 12px;
    pointer-events: none;
}
.rgs-namehead-kicker {
    font-size: 11px;
    color: var(--rgs-accent);
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: 700;
}
.rgs-namehead-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    position: relative;
}
.rgs-namehead-rule {
    width: 34px; height: 2px;
    background: var(--rgs-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}
.rgs-card-namehead .rgs-card-rating { z-index: 2; }
.rgs-card-namehead .rgs-card-badge { z-index: 2; }
/* في البطاقة المميزة يكبر الاسم أكثر */
.rgs-card.is-featured .rgs-card-namehead { min-height: 100%; padding: 40px 26px; }
.rgs-card.is-featured .rgs-namehead-title { font-size: 30px; }

/* ===== شبكة الأماكن ===== */
.rgs-place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }

.rgs-card {
    background: var(--rgs-white); border: 1px solid var(--rgs-line);
    border-radius: var(--rgs-radius); overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--rgs-shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.rgs-card:hover { transform: translateY(-4px); box-shadow: var(--rgs-shadow-lg); }
.rgs-card.is-featured { grid-column: span 2; flex-direction: row; }
.rgs-card.is-featured .rgs-card-media { width: 44%; padding-top: 0; }
.rgs-card.is-featured .rgs-card-body { flex: 1; justify-content: center; }

.rgs-card-media { position: relative; width: 100%; padding-top: 62%; overflow: hidden; }
.rgs-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rgs-card:hover .rgs-card-media img { transform: scale(1.05); }
.rgs-card-noimg {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--rgs-primary), var(--rgs-primary-soft));
}
.rgs-card-noimg span { color: rgba(255,255,255,.5); font-weight: 700; font-size: 15px; }

.rgs-card-rating {
    position: absolute; top: 12px; right: 12px; background: var(--rgs-primary);
    color: var(--rgs-accent); font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 20px;
}
.rgs-card-badge {
    position: absolute; top: 12px; left: 12px; background: var(--rgs-accent);
    color: var(--rgs-primary); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}

.rgs-card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.rgs-card-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--rgs-ink); }
.rgs-card-desc { font-size: 13.5px; color: var(--rgs-muted); margin: 0; line-height: 1.6; }
.rgs-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rgs-tag {
    background: var(--rgs-cream); color: var(--rgs-primary); font-size: 12.5px;
    padding: 3px 11px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px;
}
.rgs-tag-price { font-weight: 700; }
.rgs-i-pin { width: 6px; height: 6px; background: var(--rgs-accent); border-radius: 50%; display: inline-block; }
.rgs-card-count { font-size: 12px; color: var(--rgs-muted); }

.rgs-empty {
    grid-column: 1 / -1; text-align: center; padding: 50px 20px;
    background: var(--rgs-white); border: 1px dashed var(--rgs-line);
    border-radius: var(--rgs-radius); color: var(--rgs-muted);
}


/* ===== مزايا المكان على البطاقة ===== */
.rgs-card-features{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px;}
.rgs-feature{
    background:rgba(217,164,65,.14);
    color:var(--rgs-accent-deep);
    font-size:11.5px;font-weight:600;
    padding:3px 10px;border-radius:8px;
    border:1px solid rgba(217,164,65,.28);
    display:inline-flex;align-items:center;gap:4px;
}
.rgs-feature::before{content:"✓";font-size:10px;color:var(--rgs-accent-deep);}
/* مزايا صفحة المكان الكاملة */
.rgs-single-features{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.rgs-single-features .rgs-feature{font-size:13px;padding:5px 13px;}

/* ===== قسم "أضف مكانك" ===== */
.rgs-cta-section { padding-bottom: 70px; }
.rgs-cta {
    background: linear-gradient(120deg, var(--rgs-primary), var(--rgs-primary-soft));
    border-radius: 22px; padding: 46px 40px; display: flex; align-items: center;
    justify-content: space-between; gap: 24px; color: var(--rgs-white); flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.rgs-cta span { color: var(--rgs-accent); font-weight: 700; font-size: 14px; }
.rgs-cta h2 { font-size: 27px; font-weight: 800; margin: 8px 0 8px; }
.rgs-cta p { margin: 0; color: #d7e6e0; max-width: 480px; }
.rgs-cta a {
    background: var(--rgs-accent); color: var(--rgs-primary); font-weight: 800;
    padding: 14px 30px; border-radius: var(--rgs-radius-sm); white-space: nowrap; font-size: 16px;
    transition: transform .15s;
}
.rgs-cta a:hover { transform: translateY(-2px); }

/* ===== صفحة الأرشيف ===== */
.rgs-archive-hero {
    background: linear-gradient(120deg, var(--rgs-primary), var(--rgs-primary-soft));
    color: var(--rgs-white); padding: 56px 0;
}
.rgs-archive-hero h1 { font-size: 34px; font-weight: 800; margin: 0 0 8px; }
.rgs-archive-hero p { margin: 0; color: #d7e6e0; }
.rgs-archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }

.rgs-filters {
    background: var(--rgs-white); border: 1px solid var(--rgs-line);
    border-radius: var(--rgs-radius); padding: 22px; position: sticky; top: 84px;
}
.rgs-filter-group { margin-bottom: 16px; }
.rgs-filter-group label { display: block; font-weight: 700; font-size: 13px; color: var(--rgs-primary); margin-bottom: 6px; }
.rgs-filter-group input, .rgs-filter-group select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--rgs-line);
    border-radius: var(--rgs-radius-sm); font-family: inherit; font-size: 14px;
    background: var(--rgs-cream); outline: none; color: var(--rgs-ink);
}
.rgs-filter-group input:focus, .rgs-filter-group select:focus { border-color: var(--rgs-accent); }
.rgs-filter-submit { width: 100%; margin-top: 6px; }
.rgs-filter-reset { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--rgs-muted); }

.rgs-pagination { margin-top: 34px; text-align: center; }
.rgs-pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: var(--rgs-radius-sm);
    background: var(--rgs-white); border: 1px solid var(--rgs-line); color: var(--rgs-primary); font-weight: 600;
}
.rgs-pagination .page-numbers.current { background: var(--rgs-primary); color: var(--rgs-white); border-color: var(--rgs-primary); }

/* ===== صفحة المكان ===== */
.rgs-single-cover { height: 380px; overflow: hidden; }
.rgs-single-cover img { width: 100%; height: 100%; object-fit: cover; }
.rgs-single-head { margin-top: -70px; position: relative; z-index: 2; }
.rgs-single-head-main {
    background: var(--rgs-white); border: 1px solid var(--rgs-line);
    border-radius: var(--rgs-radius); padding: 28px 32px; box-shadow: var(--rgs-shadow);
    display: inline-block; max-width: 100%;
}
.rgs-single-head h1 { font-size: 32px; font-weight: 800; margin: 0 0 12px; color: var(--rgs-primary); }
.rgs-single-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rgs-single-rating { background: var(--rgs-primary); color: var(--rgs-accent); font-weight: 700; padding: 5px 13px; border-radius: 20px; font-size: 14px; }
.rgs-single-rating small { color: #d7e6e0; font-weight: 500; }

.rgs-single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; padding-top: 40px; padding-bottom: 20px; align-items: start; }
.rgs-content { font-size: 16px; color: #33302a; }
.rgs-content h2, .rgs-content h3 { color: var(--rgs-primary); }
.rgs-content img { border-radius: var(--rgs-radius); margin: 16px 0; }

.rgs-info-card {
    background: var(--rgs-white); border: 1px solid var(--rgs-line);
    border-radius: var(--rgs-radius); padding: 24px; position: sticky; top: 84px; box-shadow: var(--rgs-shadow);
}
.rgs-info-card h3 { margin: 0 0 16px; font-size: 18px; color: var(--rgs-primary); }
.rgs-info-list { list-style: none; margin: 0 0 18px; padding: 0; }
.rgs-info-list li { padding: 10px 0; border-bottom: 1px solid var(--rgs-line); }
.rgs-info-list li:last-child { border-bottom: none; }
.rgs-info-list span { display: block; font-size: 12.5px; color: var(--rgs-muted); margin-bottom: 2px; }
.rgs-info-list b { font-size: 14.5px; color: var(--rgs-ink); font-weight: 600; }
.rgs-info-actions { display: flex; flex-direction: column; gap: 10px; }
.rgs-info-actions a { text-align: center; }
.rgs-info-social { display: flex; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rgs-line); }
.rgs-info-social a { font-size: 13.5px; color: var(--rgs-primary); font-weight: 600; }
.rgs-related { background: var(--rgs-white); }

/* ===== الصفحات العامة ===== */
.rgs-page { padding: 50px 0; }
.rgs-content h1 { color: var(--rgs-primary); font-size: 32px; }

/* ===== الفوتر ===== */
.rgs-footer { background: var(--rgs-primary); color: rgba(255,255,255,.85); padding: 50px 0 0; margin-top: 40px; }
.rgs-footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; }
.rgs-footer-logo { font-size: 22px; font-weight: 800; color: var(--rgs-white); display: block; margin-bottom: 10px; }
.rgs-footer-brand p { max-width: 380px; margin: 0; color: #b9cdc6; font-size: 14.5px; }
.rgs-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.rgs-footer-nav a { color: rgba(255,255,255,.85); font-size: 14.5px; transition: color .15s; }
.rgs-footer-nav a:hover { color: var(--rgs-accent); }
.rgs-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; color: #9fb5ae; }

/* ===== الاستجابة للجوال ===== */
@media (max-width: 900px) {
    .rgs-menu-toggle { display: block; }
    .rgs-nav {
        position: absolute; top: 68px; right: 0; left: 0; background: var(--rgs-primary);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .rgs-nav.is-open { max-height: 400px; }
    .rgs-nav ul { flex-direction: column; padding: 12px 24px; gap: 4px; }
    .rgs-nav li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .rgs-header-actions .rgs-link-btn { display: none; }
    .rgs-hero h1 { font-size: 30px; }
    .rgs-archive-layout { grid-template-columns: 1fr; }
    .rgs-filters { position: static; }
    .rgs-single-layout { grid-template-columns: 1fr; }
    .rgs-info-card { position: static; }
    .rgs-card.is-featured { grid-column: span 1; flex-direction: column; }
    .rgs-card.is-featured .rgs-card-media { width: 100%; padding-top: 62%; }
}

@media (max-width: 560px) {
    .rgs-container { padding: 0 16px; }
    .rgs-hero { padding: 60px 0 54px; }
    .rgs-hero h1 { font-size: 25px; }
    .rgs-place-grid { grid-template-columns: 1fr; }
    .rgs-cta { padding: 32px 24px; }
    .rgs-single-cover { height: 240px; }
}

/* ===== نموذج البحث المضمّن في صفحة النتائج ===== */
.rgs-inline-search{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.rgs-inline-search input[type="search"]{flex:1;min-width:200px;padding:12px 16px;border:1px solid var(--rgs-line);border-radius:var(--rgs-radius-sm);font-family:inherit;font-size:15px;background:#fff;outline:none;}
.rgs-inline-search input[type="search"]:focus{border-color:var(--rgs-accent);}
