/* ========================================================================
   Ksefyges.gr — Light Premium Theme
   ======================================================================== */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #2563eb;
    --accent-light: #3b82f6;
    --accent-glow: rgba(37, 99, 235, 0.25);
    --accent-secondary: #0891b2;
    --gradient-primary: linear-gradient(135deg, #2563eb, #0891b2);
    --gradient-accent: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
    --border-color: rgba(148, 163, 184, 0.25);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --header-height: 64px;
    --sidebar-width: 420px;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---- Loading Screen ---- */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #f8fafc);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-globe {
    animation: spin 3s linear infinite;
    margin-bottom: 20px;
    display: inline-block;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.loading-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.loading-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.loading-bar {
    width: 200px;
    height: 3px;
    border-radius: 2px;
    background: var(--border-color);
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar-fill {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-primary);
    animation: loadMove 1.8s ease-in-out infinite;
}

@keyframes loadMove {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ---- Map Loading Overlay ---- */
.map-loading-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 950;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.map-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.map-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(37, 99, 235, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: filterSpin 0.7s linear infinite;
}

@keyframes filterSpin {
    to { transform: rotate(360deg); }
}

/* ---- Sidebar Loading Spinner ---- */
.sidebar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    gap: 16px;
}

.sidebar-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: filterSpin 0.7s linear infinite;
}

.sidebar-loading p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- Header ---- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search */
.search-container {
    position: relative;
    width: 380px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f1f5f9;
}

.search-result-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stats badge */
.stats-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.stats-count {
    font-weight: 800;
    font-size: 1rem;
}

/* Filter button */
.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: #eff6ff;
}

/* Filter panel */
.filter-panel {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    width: 300px;
    z-index: 900;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-smooth);
    padding: 0;
}

.filter-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.filter-panel-inner {
    padding: 20px;
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
}

.filter-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Dual (min–max) range slider */
.dual-slider {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}

.dual-slider-track,
.dual-slider-fill {
    position: absolute;
    height: 4px;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.dual-slider-track {
    left: 0;
    right: 0;
    background: #e2e8f0;
}

.dual-slider-fill {
    background: var(--gradient-primary);
}

.dual-slider input[type="range"] {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.dual-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px var(--accent-glow);
}

.dual-slider input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px var(--accent-glow);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.clear-filters-btn {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-filters-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.apply-filters-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.apply-filters-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ---- Map ---- */
.map-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
}

/* Map marker cluster overrides for light theme */
.marker-cluster-small {
    background-color: rgba(37, 99, 235, 0.15);
}

.marker-cluster-small div {
    background-color: rgba(37, 99, 235, 0.6);
    color: #fff;
}

.marker-cluster-medium {
    background-color: rgba(8, 145, 178, 0.2);
}

.marker-cluster-medium div {
    background-color: rgba(8, 145, 178, 0.7);
    color: #fff;
}

.marker-cluster-large {
    background-color: rgba(245, 158, 11, 0.2);
}

.marker-cluster-large div {
    background-color: rgba(245, 158, 11, 0.8);
    color: #fff;
}

.marker-cluster div {
    width: 32px;
    height: 32px;
    margin: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---- Custom Map Markers ---- */
.destination-marker {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.destination-marker:hover {
    transform: scale(1.08);
    z-index: 999 !important;
}

.marker-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.9);
    position: relative;
}

.marker-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.destination-marker:hover .marker-circle img {
    transform: scale(1.15);
}

/* Destination name label under marker */
.marker-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.92);
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    letter-spacing: 0.2px;
}

/* Pulse ring */
.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62px;
    height: 62px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Trip-count circle (top-left) */
.marker-count {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 11px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 3;
}

/* Price badge */
.marker-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-warm);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 2;
}

/* Hover tooltip */
.marker-tooltip {
    position: absolute;
    bottom: calc(100% + 28px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    z-index: 10;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-secondary);
}

.destination-marker:hover .marker-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-deals {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 2px;
}

/* ---- Sidebar ---- */
.sidebar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 800;
    background: var(--bg-secondary);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: var(--transition-smooth);
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
}

.sidebar-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: var(--gradient-primary, linear-gradient(135deg, #2563eb, #0891b2));
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.sidebar-share:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38);
}

.sidebar-share:active {
    transform: translateY(0);
}

.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.sidebar-close:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

/* Destination hero */
.destination-hero {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    margin-top: -56px;
}

.destination-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-hero:hover .destination-hero-img {
    transform: scale(1.05);
}

.destination-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.destination-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.destination-country {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Stats */
.destination-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 20px;
}

.stat-card {
    text-align: center;
    padding: 12px 8px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Package cards */
.packages-list {
    padding: 8px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    animation: cardSlideIn 0.4s ease-out both;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.package-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.package-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card:hover .package-card-image img {
    transform: scale(1.05);
}

.package-card-type,
.package-card-source {
    position: absolute;
    top: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.package-card-type {
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.package-card-source {
    right: 10px;
    background: rgba(37, 99, 235, 0.85);
    color: #fff;
}

.package-card-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    background: rgba(5, 150, 105, 0.85);
    color: #fff;
}

.package-card-body {
    padding: 14px 16px 10px;
}

.package-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.chip-geo {
    border-style: dashed;
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.chip-geo:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chip-geo.active {
    border-style: solid;
    background: var(--accent-secondary);
    color: #fff;
    border-color: var(--accent-secondary);
}

.package-card-departure {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.package-card-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.package-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.package-card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.highlight-tag {
    padding: 3px 8px;
    border-radius: 50px;
    background: #eff6ff;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 500;
}

.package-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border-color);
}

.package-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-original {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #059669;
}

.price-savings {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-warm);
    padding: 2px 7px;
    border-radius: 50px;
}

.package-card-cta {
    padding: 6px 16px;
    border-radius: 50px;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.package-card-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ---- Burger menu button ---- */
.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.menu-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--bg-glass-hover);
}

.menu-btn.active {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
}

/* ---- Side menu drawer ---- */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    max-width: 85vw;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.menu-drawer.open {
    transform: translateX(0);
}

.menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.menu-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.menu-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.menu-drawer-close:hover {
    background: var(--bg-primary);
    color: var(--accent);
}

.menu-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 22px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.menu-item:hover {
    background: var(--bg-primary);
    color: var(--accent);
    padding-left: 26px;
}

.menu-item-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.menu-drawer-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ---- Feature popup modal ---- */
.feature-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1200;
}

.feature-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.feature-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px 32px 32px;
    text-align: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* Faded sea background: soft white veil over a calm sea photo */
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.94)),
        url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1000&q=80');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-xl);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-modal-overlay.open .feature-modal-card {
    transform: translateY(0) scale(1);
}

.feature-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.feature-modal-close:hover {
    background: #fff;
    color: var(--accent);
}

.feature-modal-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.feature-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-modal-message {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-modal-link {
    display: inline-block;
    margin: -8px 0 22px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.feature-modal-link:hover {
    text-decoration: underline;
}

.feature-modal-link[hidden] {
    display: none;
}

.feature-modal-ok {
    padding: 12px 34px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.feature-modal-ok:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .search-container {
        width: 200px;
    }

    .sidebar {
        width: 100%;
    }

    /* Keep the offers count visible on mobile, but compact: drop the
       "προσφορές" label so just the number fits alongside the search box and
       header buttons (the full label would overflow the header on phones). */
    .stats-badge {
        padding: 5px 10px;
        gap: 0;
    }

    .stats-label {
        display: none;
    }

    /* Never let the header controls get pushed off-screen — the search box
       yields width instead. */
    .header-right {
        flex-shrink: 0;
    }

    .search-container {
        min-width: 0;
        flex-shrink: 1;
    }
}

@media (max-width: 480px) {
    .search-container {
        width: 140px;
    }

    .app-header {
        padding: 0 12px;
    }

    .logo-text {
        display: none;
    }
}

/* Share toast */
.app-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 20px);
    z-index: 4000;
    max-width: 90vw;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}