@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

/* ==================== THEME VARIABLES ==================== */
:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-light: rgba(249, 115, 22, 0.1);
    --primary-subtle: #ffedd5;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #0284c7;
    --accent-light: #e0f2fe;
    
    /* Light Mode Tokens */
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --card-hover-border: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-text: #0f172a;
    --stats-bg: #ffffff;
    --pill-bg: #f1f5f9;
    --pill-text: #334155;
    --dropdown-bg: #ffffff;
    --dropdown-border: #e2e8f0;
    --modal-bg: #ffffff;
    --table-stripe-bg: rgba(241, 245, 249, 0.6);
    --rating-box-bg: #f8fafc;
    --review-card-bg: rgba(241, 245, 249, 0.7);

    --gold-star: #f59e0b;
    --success: #10b981;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(249, 115, 22, 0.08);
}

/* ==================== AESTHETIC DARK MODE ==================== */
[data-bs-theme="dark"],
[data-theme="dark"] {
    --bg-body: #080d16;
    --card-bg: #0f1726;
    --card-hover-border: rgba(249, 115, 22, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e2a3c;
    --input-bg: #151f30;
    --input-border: #283950;
    --input-text: #f8fafc;
    --stats-bg: #0f1726;
    --pill-bg: #182335;
    --pill-text: #cbd5e1;
    --dropdown-bg: #0f1726;
    --dropdown-border: #243248;
    --modal-bg: #0f1726;
    --table-stripe-bg: rgba(24, 35, 53, 0.6);
    --rating-box-bg: #151f30;
    --review-card-bg: rgba(21, 31, 48, 0.7);

    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(249, 115, 22, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

body {
    background-color: var(--bg-body);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

[data-bs-theme="dark"] body {
    background-image: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.03) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.03) 0%, transparent 40%);
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==================== THEME TOGGLE BUTTON ==================== */
.btn-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(15deg) scale(1.05);
}

.theme-icon-light {
    display: none;
}
.theme-icon-dark {
    display: inline-block;
}

[data-bs-theme="dark"] .theme-icon-light,
[data-theme="dark"] .theme-icon-light {
    display: inline-block;
}

[data-bs-theme="dark"] .theme-icon-dark,
[data-theme="dark"] .theme-icon-dark {
    display: none;
}

/* ==================== NAVBAR ==================== */
.navbar-custom {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.85rem 0;
    z-index: 1030;
}

[data-bs-theme="dark"] .navbar-custom,
[data-theme="dark"] .navbar-custom {
    background: rgba(6, 10, 18, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.navbar-custom .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.search-nav-form {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.search-nav-input {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.45rem 2.4rem 0.45rem 1rem;
    font-size: 0.88rem;
    width: 100%;
    transition: all 0.2s ease;
}

.search-nav-input::placeholder {
    color: #94a3b8;
}

.search-nav-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
    color: #ffffff;
    outline: none;
}

.search-nav-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.search-nav-btn:hover {
    color: var(--primary);
}

.btn-lang {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.btn-lang:hover, .btn-lang:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-primary {
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.btn-google-auth {
    background: #ffffff;
    color: #1f2937;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-google-auth:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    color: #0f172a;
}

[data-bs-theme="dark"] .btn-google-auth,
[data-theme="dark"] .btn-google-auth {
    background: #151f30;
    color: #f8fafc;
    border-color: #283950;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .btn-google-auth:hover,
[data-theme="dark"] .btn-google-auth:hover {
    background: #1c293f;
    border-color: rgba(66, 133, 244, 0.6);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    color: #ffffff;
}

.btn-secondary {

    background: var(--pill-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.btn-outline-secondary {
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
}

.btn-outline-secondary:hover {
    background: var(--pill-bg);
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* ==================== HERO BANNER ==================== */
.hero-wrapper {
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.22) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.18) 0%, transparent 50%),
                linear-gradient(135deg, #090e1a 0%, #111c2e 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 2.5rem;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fb923c;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-search-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    max-width: 650px;
}

[data-bs-theme="dark"] .hero-search-box,
[data-theme="dark"] .hero-search-box {
    background: #151f30;
    border: 1px solid #283950;
}

.hero-search-input {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    color: var(--text-main);
    background: transparent;
}

.hero-search-input:focus {
    outline: none;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.category-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==================== STATS COUNTER STRIP ==================== */
.stats-strip {
    background: var(--stats-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-card);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== RESTAURANT CARD ==================== */
.restaurant-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--shadow-card);
}

.restaurant-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--card-hover-border);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #090e1a;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.restaurant-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-badge-cuisine {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-badge-price {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #fbbf24;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 1.1rem;
}

[data-bs-theme="dark"] .card-fav-btn,
[data-theme="dark"] .card-fav-btn {
    background: rgba(15, 23, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

.card-fav-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    color: #ef4444;
}

[data-bs-theme="dark"] .card-fav-btn:hover,
[data-theme="dark"] .card-fav-btn:hover {
    background: #1e293b;
    color: #ef4444;
}

.card-fav-btn.active {
    color: #ef4444;
    background: #ffffff;
}

[data-bs-theme="dark"] .card-fav-btn.active,
[data-theme="dark"] .card-fav-btn.active {
    background: #1e293b;
}

.card-body-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.restaurant-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0;
    line-height: 1.3;
}

.restaurant-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.restaurant-title a:hover {
    color: var(--primary);
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

[data-bs-theme="dark"] .rating-pill,
[data-theme="dark"] .rating-pill {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.rating-star-icon {
    color: var(--gold-star);
}

[data-bs-theme="dark"] .rating-star-icon {
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.card-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.reviews-tag {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== FORMS, INPUTS & FILTERS ==================== */
.form-control, .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.9rem;
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    color: var(--input-text);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-group-text {
    background-color: var(--pill-bg);
    border-color: var(--input-border);
    color: var(--text-muted);
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-main);
}

.filter-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-subtle);
}

.dropdown-menu {
    background-color: var(--dropdown-bg);
    border-color: var(--dropdown-border);
    box-shadow: var(--shadow-hover);
}

.dropdown-item {
    color: var(--text-main);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--pill-bg);
    color: var(--primary);
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* ==================== MAP STYLING & DARK MODE MAP ==================== */
.map-container-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    height: 420px;
    width: 100%;
    z-index: 1;
}

[data-bs-theme="dark"] .leaflet-tile,
[data-theme="dark"] .leaflet-tile {
    filter: brightness(0.65) invert(1) contrast(3.2) hue-rotate(200deg) saturate(0.35) brightness(0.75);
}

[data-bs-theme="dark"] .leaflet-container {
    background: #090e1a;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: var(--card-bg);
    color: var(--text-main);
}

.leaflet-popup-tip {
    background: var(--card-bg);
}

.leaflet-popup-content {
    margin: 0;
    line-height: 1.4;
    min-width: 220px;
}

.map-popup-card {
    padding: 12px;
}

.map-popup-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.map-popup-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-main);
}

.map-popup-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ==================== DETAIL PAGE ==================== */
.detail-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.detail-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    background: #090e1a;
    position: relative;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.detail-gallery-main img:hover {
    transform: scale(1.02);
}

.gallery-thumbs-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb-item {
    width: 90px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-thumb-item.active,
.gallery-thumb-item:hover {
    border-color: var(--primary);
    opacity: 0.9;
}

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

.feature-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pill-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Rating Breakdown */
.rating-breakdown-box {
    background: var(--rating-box-bg);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.progress-custom {
    flex-grow: 1;
    height: 8px;
    border-radius: 999px;
    background: var(--border-color);
    overflow: hidden;
}

.progress-custom-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    border-radius: 999px;
}

/* Interactive Star Rating Selector */
.star-rating-selector {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}

.star-rating-selector input {
    display: none;
}

.star-rating-selector label {
    font-size: 2.2rem;
    color: var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label,
.star-rating-selector input:checked ~ label {
    color: var(--gold-star);
    transform: scale(1.1);
}

[data-bs-theme="dark"] .star-rating-selector label:hover,
[data-bs-theme="dark"] .star-rating-selector label:hover ~ label,
[data-bs-theme="dark"] .star-rating-selector input:checked ~ label {
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

/* ==================== RESERVATION / SIDEBAR CARD ==================== */
.sticky-side-card {
    position: sticky;
    top: 90px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

/* ==================== USER PROFILE TABS ==================== */
.profile-header-card {
    background: linear-gradient(135deg, #090e1a 0%, #111c2e 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-nav-pills {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.profile-nav-link {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-nav-link:hover {
    color: var(--text-main);
    background: var(--pill-bg);
}

.profile-nav-link.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    border-color: var(--border-color);
}

/* ==================== FOOTER ==================== */
.footer-custom {
    background: #050810;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-custom h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-custom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-custom a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.85rem;
}

/* ==================== RESPONSIVENESS ==================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        padding: 1.25rem;
        border-radius: var(--radius-lg);
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-nav {
        margin-left: 0 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .search-nav-form {
        max-width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    .navbar-collapse .dropdown {
        width: 100%;
    }
    
    .navbar-collapse .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        box-shadow: none;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item {
        color: #cbd5e1 !important;
        padding: 0.6rem 1rem;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
    }
    
    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-pills .nav-item {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 2.5rem 1.25rem;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .stats-strip {
        padding: 1.25rem 1rem;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .sticky-side-card {
        position: static;
    }
    .card-body {
        padding: 1.25rem !important;
    }
    .table-responsive {
        border-radius: var(--radius-md);
    }
}

/* ==================== MODERN MOBILE OFFCANVAS DRAWER ==================== */
.mobile-drawer {
    background: #090e1a !important;
    color: #ffffff;
    width: 320px !important;
    max-width: 85vw !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .mobile-drawer,
[data-theme="dark"] .mobile-drawer {
    background: #04070f !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.mobile-user-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-search-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 0.9rem;
}

.mobile-search-input::placeholder {
    color: #94a3b8;
}

.mobile-search-input:focus {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25) !important;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.96rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    transform: translateX(4px);
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #ffffff !important;
}

.mobile-nav-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.bg-orange-subtle {
    background: rgba(249, 115, 22, 0.18) !important;
}

.bg-blue-subtle {
    background: rgba(59, 130, 246, 0.18) !important;
}

.bg-warning-subtle {
    background: rgba(245, 158, 11, 0.18) !important;
}

.bg-success-subtle {
    background: rgba(16, 185, 129, 0.18) !important;
}

.bg-danger-subtle {
    background: rgba(239, 68, 68, 0.18) !important;
}

.bg-info-subtle {
    background: rgba(6, 182, 212, 0.18) !important;
}

.bg-secondary-subtle {
    background: rgba(148, 163, 184, 0.18) !important;
}

.mobile-nav-text {
    flex-grow: 1;
}

.mobile-nav-arrow {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover .mobile-nav-arrow {
    color: #ffffff;
    transform: translateX(2px);
}

.btn-dark-subtle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-dark-subtle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.btn-mobile-menu {
    background: none;
    line-height: 1;
}

.btn-mobile-menu:hover {
    color: var(--primary) !important;
}

/* ==================== iOS APP GRID TILES ==================== */
.ios-app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ios-tile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ios-tile:hover,
.ios-tile:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.96);
    color: #ffffff !important;
}

.ios-tile.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.45);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.ios-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.bg-gradient-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.bg-gradient-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.bg-gradient-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.bg-gradient-slate { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }

.ios-tile-label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: #f1f5f9;
}

/* ==================== iOS FLOATING BOTTOM NAVIGATION BAR ==================== */
.ios-bottom-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .ios-bottom-bar,
[data-theme="dark"] .ios-bottom-bar {
    background: rgba(6, 10, 18, 0.92);
}

.ios-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 12px;
}

.ios-bottom-item i {
    font-size: 1.25rem;
    line-height: 1;
}

.ios-bottom-item:hover,
.ios-bottom-item:focus {
    color: #ffffff !important;
}

.ios-bottom-item.active {
    color: var(--primary) !important;
}

.ios-bottom-center-btn {
    position: relative;
    top: -12px;
}

.ios-center-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 3px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
    transition: transform 0.2s ease;
}

.ios-bottom-center-btn:active .ios-center-icon {
    transform: scale(0.92);
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 75px !important;
    }
}

@media (max-width: 576px) {
    .container, .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .h1, h1 {
        font-size: 1.5rem !important;
    }
    .fs-4 {
        font-size: 1.25rem !important;
    }
    .btn-sm {
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
    }
}
