/* ============================================================
   MAIN PAGE — Explorar / Feed
   ============================================================ */

.main-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 165, 116, 0.12), transparent),
        var(--bg-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible;
}

.main-container {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 24px var(--layout-gutter) 64px;
}

/* —— Navbar enhancements —— */
.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.menu-btn span {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 50px;
}

.menu-btn:hover {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.1);
}

.search-box {
    position: relative;
    width: min(480px, 100%);
}

.search-box__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    height: 46px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0 20px 0 46px;
    color: white;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.12);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.main-search-mobile {
    display: none;
    padding: 0 var(--layout-gutter) 12px;
}

.search-box--mobile {
    width: 100%;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    font-size: 1.05rem;
}

.icon-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--bg-primary);
}

.profile-btn {
    display: block;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
}

.profile-btn:hover {
    border-color: var(--accent);
}

.profile-btn img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* —— Sidebar —— */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.sidebar-backdrop[hidden] {
    display: none !important;
}

.sidebar-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    position: fixed;
    top: 0;
    left: -100%;
    background: rgba(18, 18, 20, 0.97);
    backdrop-filter: blur(24px);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.sidebar-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.sidebar-logo span {
    color: var(--accent);
}

.close-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-title {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    color: var(--accent);
    opacity: 0.85;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.05));
    border: 1px solid rgba(212, 165, 116, 0.25);
    color: white;
}

.sidebar-bottom {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

.sidebar-bottom .premium-box {
    margin-top: 0;
}

.premium-box {
    margin-top: auto;
    background: linear-gradient(145deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.04));
    border: 1px solid rgba(212, 165, 116, 0.2);
    padding: 22px;
    border-radius: var(--radius-md);
}

.premium-box__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(212, 165, 116, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.premium-box h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.premium-box p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.btn-primary--ghost {
    background: transparent;
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: var(--accent);
    width: 100%;
    opacity: 0.7;
}

/* —— Hero —— */
.main-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.main-hero__greeting {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.main-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.main-hero__sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 420px;
}

.main-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.main-hero__chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.main-hero__chip--muted {
    cursor: default;
    color: var(--text-secondary);
}

.main-hero__chip--muted:hover {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* —— Filters —— */
.filters-wrap {
    margin-bottom: 8px;
}

.filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 11px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.filter-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: var(--accent);
    color: #0f0f10;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.25);
}

.filter-btn--tag:not(.active) i {
    color: var(--accent);
}

.filter-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 20px;
    padding: 12px 16px;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    color: var(--accent);
    font-size: 0.88rem;
}

.filter-hint i {
    flex-shrink: 0;
}

.filter-hint.hidden {
    display: none !important;
}

.feed-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.feed-section-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.feed-section-head__count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* —— Feed grid & cards —— */
.feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    contain: paint;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-card:hover {
    border-color: rgba(212, 165, 116, 0.28);
    box-shadow: 0 10px 28px rgba(15, 15, 16, 0.35);
}

.feed-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Evita línea fugaz entre foto y contenido (carga lazy / repintado GPU) */
.feed-image-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--bg-card);
    z-index: 3;
    pointer-events: none;
}

.feed-image-link {
    display: block;
    height: 100%;
    overflow: hidden;
}

.feed-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(15, 15, 16, 0.9) 0%,
        rgba(15, 15, 16, 0.2) 48%,
        transparent 62%
    );
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.feed-card:hover .feed-overlay {
    opacity: 0.92;
}

.feed-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
}

.feed-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.feed-badge--rating {
    background: rgba(24, 24, 27, 0.88);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.feed-badge--rating i {
    font-size: 0.7rem;
}

.feed-badge--category {
    background: rgba(31, 31, 35, 0.92);
    color: var(--accent);
    border: 1px solid rgba(212, 165, 116, 0.4);
    margin-left: auto;
}

.feed-content {
    position: relative;
    z-index: 2;
    padding: 20px 22px 22px;
    background: var(--bg-card);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.feed-header__info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.feed-header__info h2 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.feed-header__info h2 a:hover {
    color: var(--accent);
}

.feed-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.feed-location i {
    color: var(--accent);
    font-size: 0.75rem;
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 9px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Mismo hover que .btn-primary (Reservar) */
.follow-btn:hover,
.follow-btn:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-2px);
}

.follow-btn--active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.follow-btn--active:hover,
.follow-btn--active:focus-visible {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.service-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feed-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.feed-stats {
    display: flex;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.feed-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feed-stats i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.feed-reserve-btn {
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.88rem;
}

/* —— Loader & empty —— */
.main-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.main-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.feed-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    color: var(--text-secondary);
}

.feed-loader.hidden,
.feed-end.hidden {
    display: none !important;
}

.feed-loader__spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: feed-spin 0.7s linear infinite;
}

@keyframes feed-spin {
    to { transform: rotate(360deg); }
}

.feed-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: var(--text-secondary);
    padding: 28px;
    font-size: 0.88rem;
}

.feed-end i {
    color: var(--accent);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.empty-state__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
}

.empty-state h2,
.empty-state h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   SUBPAGES — Calendar & Notifications
   ============================================================ */

.subpage {
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(212, 165, 116, 0.1), transparent),
        var(--bg-primary);
    min-height: 100vh;
}

.subpage-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px var(--layout-gutter);
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 15, 16, 0.9);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.subpage-nav h1 {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.subpage-nav__back {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    justify-self: start;
}

.subpage-nav__back:hover {
    color: var(--accent);
}

.subpage-nav__back span {
    display: none;
}

.subpage-nav__logo {
    justify-self: end;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
}

.subpage-nav__logo span {
    color: var(--accent);
}

.subpage-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px var(--layout-gutter) 56px;
}

.subpage-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15), transparent 70%);
    pointer-events: none;
}

.subpage-hero__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(212, 165, 116, 0.08));
    border: 1px solid rgba(212, 165, 116, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent);
    flex-shrink: 0;
}

.subpage-hero__icon--bell {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.subpage-hero__text h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.subpage-hero__text p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.subpage-hero__badge {
    margin-left: auto;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 50px;
    background: var(--accent);
    color: #0f0f10;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* —— Calendar —— */
.calendar-page .subpage-content {
    max-width: 720px;
}

.calendar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: clamp(14px, 4vw, 22px);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-toolbar h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.calendar-nav-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.calendar-nav-btn:hover {
    background: var(--accent);
    color: #0f0f10;
    border-color: var(--accent);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.calendar-dot--event {
    background: var(--accent);
}

.calendar-dot--today {
    background: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35);
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(3px, 1.1vw, 6px);
    width: 100%;
}

.calendar-weekdays {
    margin-bottom: 4px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: clamp(0.62rem, 2.5vw, 0.72rem);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 4px 0;
    min-width: 0;
}

.calendar-day {
    aspect-ratio: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1px, 0.5vw, 4px);
    border-radius: 0;
    background: transparent;
    border: none;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.72rem, 3.2vw, 0.9rem);
    line-height: 1.1;
    transition: var(--transition);
    position: relative;
    box-sizing: border-box;
    padding: 2px;
}

.calendar-day__num {
    width: clamp(30px, 7.5vw, 38px);
    height: clamp(30px, 7.5vw, 38px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    transition: var(--transition);
    flex-shrink: 0;
}

.calendar-day:hover:not(.calendar-day--empty) .calendar-day__num {
    background: rgba(212, 165, 116, 0.14);
}

.calendar-day--empty {
    background: transparent;
    pointer-events: none;
}

.calendar-day--today:not(.calendar-day--selected) .calendar-day__num {
    box-shadow: inset 0 0 0 2px #60a5fa;
}

.calendar-day--has-event:not(.calendar-day--selected) .calendar-day__num {
    color: var(--accent);
    font-weight: 700;
}

.calendar-day--selected {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #0f0f10;
}

.calendar-day--selected .calendar-day__num {
    background: var(--accent);
    color: #0f0f10;
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.38);
}

.calendar-day--selected .calendar-day__dots i {
    background: #0f0f10;
}

.calendar-day__dots {
    display: flex;
    gap: 2px;
    position: absolute;
    bottom: clamp(2px, 1vw, 6px);
    max-width: 100%;
    justify-content: center;
}

.calendar-day__dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    display: block;
    font-style: normal;
}

.calendar-day-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.calendar-day-list__head h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-day-list__head h3 i {
    color: var(--accent);
}

.calendar-day-list__date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.calendar-apt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-apt {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.calendar-apt:hover {
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: var(--shadow-sm);
}

.calendar-apt__time-block {
    text-align: center;
    padding-right: 16px;
    border-right: 1px solid var(--border-color);
    min-width: 56px;
}

.calendar-apt__time {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.calendar-apt__body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.calendar-apt__body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.calendar-apt__price {
    font-weight: 600;
    color: white !important;
}

.calendar-apt__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
}

.calendar-apt--confirmed .calendar-apt__status {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.calendar-apt--pending .calendar-apt__status {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.calendar-apt--completed .calendar-apt__status {
    color: var(--text-secondary);
}

.calendar-apt__action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.calendar-apt__action:hover {
    background: var(--accent);
    color: #0f0f10;
    border-color: var(--accent);
}

.empty-state--inline {
    padding: 40px 24px;
}

/* —— Notifications —— */
.notifications-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.notifications-mark-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.notifications-mark-all:hover:not(:disabled) {
    background: rgba(212, 165, 116, 0.18);
    border-color: rgba(212, 165, 116, 0.55);
    transform: translateY(-1px);
}

.notifications-mark-all:disabled {
    opacity: 0.6;
    cursor: wait;
}

.notifications-list {
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.notifications-item {
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition);
}

.notifications-item--unread {
    background: linear-gradient(90deg, rgba(212, 165, 116, 0.07) 0%, transparent 62%);
    border-left: 3px solid var(--accent);
}

.notifications-item--default .notifications-item__icon {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.notifications-item:last-child {
    border-bottom: none;
}

.notifications-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notifications-item__link {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.notifications-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.notifications-item--confirmed .notifications-item__icon {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.notifications-item--pending .notifications-item__icon {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.notifications-item--done .notifications-item__icon {
    background: rgba(212, 165, 116, 0.12);
    color: var(--accent);
}

.notifications-item--cancelled .notifications-item__icon {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.notifications-item__content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.notifications-item--unread .notifications-item__content strong {
    color: white;
}

.notifications-item__content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 6px;
}

.notifications-item__content time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
}

.notifications-item__chevron {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.5;
    transition: var(--transition);
}

.notifications-item:hover .notifications-item__chevron {
    opacity: 1;
    color: var(--accent);
    transform: translateX(2px);
}

.notifications-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.6);
}

@keyframes notification-fresh-in {
    from {
        background: rgba(212, 165, 116, 0.18);
        transform: translateY(-4px);
    }
    to {
        background: transparent;
        transform: translateY(0);
    }
}

.notifications-item--fresh {
    animation: notification-fresh-in 0.65s ease-out;
}

.notifications-item--interactive {
    padding: 0;
}

.notifications-item__interactive {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    position: relative;
}

.notifications-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.notifications-item__action-form {
    margin: 0;
}

.notifications-item__action-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    min-height: auto;
}

.notifications-page__actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(212, 165, 116, 0.28);
    background:
        linear-gradient(180deg, rgba(212, 165, 116, 0.08), transparent 70%),
        var(--bg-card);
}

.subpage--notifications .subpage-hero {
    border: 1px solid rgba(212, 165, 116, 0.22);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.subpage--notifications .subpage-hero__icon--bell {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(212, 165, 116, 0.08));
    color: var(--accent);
}

.notifications-page__actions::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.18), transparent 70%);
    pointer-events: none;
}

.notifications-load-older {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 12px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid rgba(212, 165, 116, 0.4);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.14), rgba(24, 24, 27, 0.98));
    color: var(--accent);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.12);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.notifications-load-older__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    background: rgba(212, 165, 116, 0.16);
    border: 1px solid rgba(212, 165, 116, 0.35);
    color: var(--accent);
    transition: transform 0.25s ease, background 0.25s ease;
}

.notifications-load-older__text {
    padding-right: 4px;
}

.notifications-load-older:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 165, 116, 0.65);
    box-shadow: 0 10px 32px rgba(212, 165, 116, 0.22);
    color: #fff;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.28), rgba(31, 31, 35, 1));
}

.notifications-load-older:hover .notifications-load-older__icon {
    transform: rotate(-25deg);
    background: rgba(212, 165, 116, 0.28);
    color: #0f0f10;
}

.notifications-load-older:active {
    transform: translateY(-1px);
}

.notifications-load-older.is-hidden,
.notifications-load-older[hidden] {
    display: none;
}

.notifications-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

.notifications-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding: 20px 16px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(212, 165, 116, 0.04), var(--bg-card));
}

.notifications-loader[hidden],
.notifications-loader.is-hidden {
    display: none;
}

.notifications-loader__spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: feed-spin 0.7s linear infinite;
}

.notifications-end {
    margin: 28px 0 8px;
    padding: 0;
}

.notifications-end__card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background:
        linear-gradient(135deg, rgba(212, 165, 116, 0.06), transparent 55%),
        var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.notifications-end__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 120% at 50% -20%, rgba(212, 165, 116, 0.12), transparent 65%);
    pointer-events: none;
}

.notifications-end__rule {
    flex: 1;
    max-width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.45));
    position: relative;
    z-index: 1;
}

.notifications-end__rule:last-child {
    background: linear-gradient(270deg, transparent, rgba(212, 165, 116, 0.45));
}

.notifications-end__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--accent);
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.28);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.15);
    position: relative;
    z-index: 1;
}

.notifications-end__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.notifications-end[hidden],
.notifications-end.is-hidden {
    display: none;
}

@media (max-width: 480px) {
    .notifications-end__card {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px 18px;
        text-align: center;
    }

    .notifications-end__rule {
        display: none;
    }

    .notifications-end__icon {
        margin: 0 auto;
    }

    .notifications-end__text {
        flex: 1 1 100%;
    }

    .notifications-load-older {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
}

.empty-state--page {
    padding: 64px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.empty-state--page .btn-primary {
    margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 640px) {
    .subpage-nav__back span {
        display: inline;
    }
}

@media (max-width: 900px) {
    .nav-center {
        display: none;
    }

    .main-search-mobile {
        display: block;
    }
}

@media (max-width: 700px) {
    .feed {
        grid-template-columns: 1fr;
    }

    .main-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .feed-image-container {
        height: 200px;
    }

    .calendar-toolbar h3 {
        font-size: 0.98rem;
    }

    .calendar-nav-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .calendar-day-list__head h3 {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .calendar-day-list__date {
        font-size: 0.82rem;
    }

    .calendar-apt {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calendar-apt__time-block {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 12px;
        text-align: left;
    }

    .calendar-apt__action {
        justify-self: end;
    }

    .notifications-item__link {
        grid-template-columns: auto 1fr auto;
    }

    .notifications-item__chevron {
        display: none;
    }
}

@media (max-width: 380px) {
    .subpage--calendar .subpage-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .calendar-card {
        padding: 12px 8px;
    }

    .calendar-legend {
        font-size: 0.72rem;
        gap: 8px 14px;
    }

    .calendar-day__dots i {
        width: 3px;
        height: 3px;
    }
}
