/* 
 Theme Name: Hurghada Reisen
 Author: Agent AI
 Description: Custom theme utilizing Bootstrap 5 based on monamour functionality
*/

:root {
    --primary-color: #009dc0;
    --secondary-color: #d8a538;
    --accent-color: #ffbf29;
    --body-bg: #f8f9fa;
    --text-color: #333333;
    --heading-color: #2b2b2b;
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
}

/* Base Bootstrap Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #007691;
    border-color: #007691;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

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

.btn-secondary:hover {
    background-color: #b5882e;
    border-color: #b5882e;
}

/* Sections Setup */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Navbar Tuning */
.navbar {
    transition: all 0.3s ease;
}

.navbar.fixed-top {
    background-color: rgba(0, 0, 0, 0.85);
    /* temporary dark header */
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Trip Cards */
.trip-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s;
}

.trip-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.trip-thumb {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.trip-body {
    padding: 20px;
}

.trip-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

/* Wave divider sits right above the footer, no gap */
.footer-wave {
    display: block;
    line-height: 0;
    margin-bottom: -1px;
    /* prevents hairline gap */
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.site-footer {
    background: linear-gradient(160deg, #0f1923 0%, #162130 60%, #0d1f2d 100%);
    padding: 70px 0 0;
    position: relative;
}

/* Logo */
.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

/* Tagline */
.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Section heading */
.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 1.4rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Social buttons */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 14px rgba(0, 157, 192, 0.5);
    transform: translateY(-3px);
}

/* Quick links */
.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s, padding-left 0.25s;
}

.footer-links a i {
    font-size: 0.6rem;
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0;
    transition: opacity 0.25s;
}

.footer-links a:hover,
.footer-links a.active {
    color: #fff;
    padding-left: 4px;
}

.footer-links a:hover i,
.footer-links a.active i {
    opacity: 1;
    color: var(--secondary-color);
}

/* Contact list */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
    line-height: 1.5;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 157, 192, 0.15);
    color: var(--primary-color);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Newsletter */
.footer-newsletter-wrap {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.footer-newsletter-wrap:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 157, 192, 0.15);
}

.footer-newsletter-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.88rem;
}

.footer-newsletter-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter-wrap button {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.85rem;
}

.footer-newsletter-wrap button:hover {
    background: #007691;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 50px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-powered a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s;
}

.footer-powered a:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ─── Gallery Thumbnails ─────────────────────────────────────────────────── */
.gallery-thumb {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-thumb img {
    transition: transform 0.4s ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover .gallery-overlay {
    opacity: 1;
}

/* ─── Gallery Grid (single-page.php) ────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 14px;
}

.gallery-item,
.gallery-item-large {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid .gallery-item:nth-child(2) {
    grid-column: span 2;
}

/* GLightbox anchor fills the cell */
.gallery-item>a.glightbox,
.gallery-item-large>a.glightbox {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img,
.gallery-item-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

/* Hover effects */
.gallery-item:hover,
.gallery-item-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    border-color: var(--primary-color);
}

.gallery-item:hover img,
.gallery-item-large:hover img {
    transform: scale(1.09);
    filter: brightness(0.88);
}

/* Expand icon button */
.gallery-btn-maximize {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    pointer-events: none;
}

.gallery-item:hover .gallery-btn-maximize,
.gallery-item-large:hover .gallery-btn-maximize {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 10px;
    }

    .gallery-btn-maximize {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(130px, auto);
        gap: 8px;
    }

    .gallery-item-large,
    .gallery-grid .gallery-item:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ─── Datepicker Theme Override ──────────────────────────────────────────── */
.datepicker {
    z-index: 9999 !important;
    font-family: inherit;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.selected {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: #fff !important;
    border-radius: 8px;
}

.datepicker table tr td.today {
    background: rgba(0, 157, 192, 0.15) !important;
    color: var(--primary-color) !important;
    font-weight: bold;
    border-radius: 8px;
}

.datepicker table tr td.day:hover {
    background: rgba(0, 157, 192, 0.1);
    border-radius: 8px;
}

.datepicker-dropdown.datepicker-orient-bottom:before,
.datepicker-dropdown.datepicker-orient-bottom:after {
    border-bottom-color: #fff;
}

/* ─── Clockpicker Bootstrap 5 Positioning Fix + Theme ────────────────────── */
/* BS5 uses 'fixed' for .popover; force 'absolute' so it appears beside the
   input instead of at the bottom/edge of the viewport.                     */
.clockpicker-popover {
    z-index: 10000 !important;
    position: absolute !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden;
}

.popover {
    z-index: 10000 !important;
}

.input-group.clockpicker {
    position: relative;
}

/* Title / header bar */
.clockpicker-popover .popover-title {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-align: center;
    padding: 10px 16px !important;
    border-bottom: none !important;
    border-radius: 0 !important;
}

.clockpicker-popover .popover-title span {
    cursor: pointer;
}

.clockpicker-span-hours,
.clockpicker-span-minutes,
.clockpicker-popover .popover-title .text-primary {
    color: #fff !important;
}

/* Clock face content */
.clockpicker-popover .popover-content {
    background-color: #f8f9fa !important;
    padding: 16px !important;
    border-radius: 0 !important;
}

/* Clock plate circle */
.clockpicker-plate {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

/* Tick numbers */
.clockpicker-tick {
    color: #444 !important;
}

.clockpicker-tick.active,
.clockpicker-tick:hover {
    background-color: rgba(0, 157, 192, 0.15) !important;
    color: var(--primary-color) !important;
}

/* SVG clock hand */
.clockpicker-canvas line {
    stroke: var(--primary-color) !important;
}

.clockpicker-canvas-bearing,
.clockpicker-canvas-fg {
    fill: var(--primary-color) !important;
    stroke: none !important;
}

.clockpicker-canvas-bg {
    fill: rgba(0, 157, 192, 0.15) !important;
    stroke: none !important;
}

.clockpicker-canvas-bg-trans {
    fill: rgba(0, 157, 192, 0.08) !important;
}

/* Done button */
.clockpicker-button {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    border-top: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.clockpicker-button:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Hide the arrow pointer (not needed with absolute positioning) */
.clockpicker-popover>.arrow,
.clockpicker-popover .arrow {
    display: none !important;
}

/* ─── Page Hero (single-page.php) ───────────────────────────────────────── */
.hr-page-hero {
    min-height: 380px;
    background-color: #0f1923;
}

.hr-page-hero .display-4 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ─── Section Label ──────────────────────────────────────────────────────── */
.hr-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* ─── Gallery Grid ───────────────────────────────────────────────────────── */
.hr-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 10px;
    border-radius: 16px;
    overflow: hidden;
}

.hr-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hr-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hr-gallery-item:hover img {
    transform: scale(1.06);
}

.hr-gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.hr-gallery-expand {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.hr-gallery-item:hover .hr-gallery-expand {
    opacity: 1;
}

@media (max-width: 768px) {
    .hr-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .hr-gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ─── Search Bar ─────────────────────────────────────────────────────────── */
.hr-search-group .input-group-text {
    background: #fff;
    border-right: 0;
    color: var(--primary-color);
}

.hr-search-group .form-control {
    border-left: 0;
    box-shadow: none;
}

.hr-search-group .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* ─── View Switcher ──────────────────────────────────────────────────────── */
.hr-view-switcher .btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #555;
    font-size: 0.85rem;
    border-radius: 8px !important;
}

.hr-view-switcher .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ─── Content Card ───────────────────────────────────────────────────────── */
.hr-content-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ─── Transfer Cards (Grid View) ─────────────────────────────────────────── */
.hr-transfer-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid #f0f0f0;
}

.hr-transfer-card:hover {
    box-shadow: 0 8px 30px rgba(0, 157, 192, 0.15);
    transform: translateY(-4px);
}

.hr-transfer-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.hr-transfer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hr-transfer-card:hover .hr-transfer-img img {
    transform: scale(1.05);
}

.hr-transfer-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
}

.hr-vehicle-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.hr-vbadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hr-transfer-body {
    padding: 18px;
}

.hr-route-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.hr-route-arrow {
    color: var(--primary-color);
    margin: 0 6px;
}

.hr-transfer-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hr-feat {
    background: #f5f9fa;
    border: 1px solid #e0eef1;
    color: #555;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.hr-feat i {
    color: var(--primary-color);
}

.hr-price-block {
    font-size: 0.9rem;
}

.hr-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 3px;
}

.hr-price-row i {
    color: var(--primary-color);
    width: 18px;
}

.hr-price-van {
    color: #0dcaf0 !important;
}

.hr-price-unit {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

/* ─── Transfer Table ─────────────────────────────────────────────────────── */
.hr-transfer-table {
    border-collapse: separate;
    border-spacing: 0;
}

.hr-transfer-table thead th {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border: none;
}

.hr-transfer-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.hr-transfer-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.hr-transfer-table tbody tr {
    transition: background 0.2s;
}

.hr-transfer-table tbody tr:hover {
    background: #f5fcfe;
}

.hr-transfer-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.hr-vehicle-pill {
    background: rgba(0, 157, 192, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(0, 157, 192, 0.2);
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ─── Booking Form Card ──────────────────────────────────────────────────── */
.hr-booking-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
}

.hr-form-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hr-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    margin-bottom: 0.5rem;
}

.hr-input {
    border-radius: 10px;
    border-color: #e0e0e0;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.hr-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 157, 192, 0.12);
}

.hr-type-btn {
    border-radius: 12px !important;
    border-color: #ddd;
    color: #555;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.btn-check:checked+.hr-type-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 157, 192, 0.3);
}

.hr-price-summary {
    background: linear-gradient(135deg, #f0fafc, #e8f7fb);
    border: 1px solid rgba(0, 157, 192, 0.15);
    border-radius: 14px;
    padding: 20px 24px;
}

.hr-price-total {
    line-height: 1.1;
}

/* Payment option */
.hr-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.hr-payment-option:has(input:checked) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 157, 192, 0.12);
}

/* ─── Mobile sticky booking bar ──────────────────────────────────────────── */
.mobile-sticky-booking {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1030;
    padding: 6px 0;
}

/* ─── Transition for view switch ─────────────────────────────────────────── */
.transition-fade {
    transition: opacity 0.25s ease;
}