:root {
    --primary: #27318A;
    --primary-hover: #1f2a68;
    --success: #10b981;
    --dark: #0f172a;
    --bg-color: #f8fafc;
}
html { height: 100%; }
body { 
    font-family: 'Roboto', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-weight: 400;
    line-height: 1.6;
}
body > footer { margin-top: auto; }

/* --- Sdílené prvky --- */
.navbar { 
    padding: 1rem 0; 
    background: #27318A !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.modern-navbar {
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(8, 13, 36, 0.18);
}

.brand-logo {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-heading {
    font-family: 'Archivo Black', sans-serif;
    color: #27318A;
    letter-spacing: 0.01em;
    text-transform: uppercase !important;
}

.navbar .navbar-nav {
    gap: 0.2rem;
    align-items: center;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.93);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    transition: color 0.2s, background-color 0.2s;
}

.nav-auth-link {
    border: 1.5px solid rgba(255,255,255,0.42);
}

.navbar .nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
}

.nav-link.active {
    color: #ffffff;
    font-weight: 700;
}

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

.nav-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 700;
    color: #ffffff;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    transition: all 0.18s ease;
}

.nav-auth:hover, .nav-auth:focus {
    background: #ffffff;
    color: #27318A;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(12,20,64,0.2);
    border-color: #ffffff;
}

.navbar .btn-outline-primary.account-toggle {
    color: #ffffff;
    border-color: rgba(255,255,255,0.45);
}

.navbar .btn-outline-primary.account-toggle:hover,
.navbar .btn-outline-primary.account-toggle:focus {
    background: #ffffff;
    color: #27318A;
    border-color: #ffffff;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.45);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.mobile-header-actions {
    display: none;
}

.mobile-icon-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.38);
    color: #ffffff !important;
    background: rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.mobile-icon-btn i {
    color: #ffffff !important;
    font-size: 1.35rem;
    line-height: 1;
}

.mobile-icon-btn:hover,
.mobile-icon-btn:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: #27318A;
    box-shadow: 0 8px 20px rgba(12, 20, 64, 0.2);
}

.mobile-icon-btn:hover i,
.mobile-icon-btn:focus i {
    color: #27318A !important;
}

.mobile-menu {
    max-width: 320px;
    background: linear-gradient(160deg, #101c58 0%, #27318A 100%);
    color: #ffffff;
    border-right: 1px solid rgba(255,255,255,0.14);
}

.mobile-menu .offcanvas-title {
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: 0.02em;
}

.mobile-menu .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.mobile-nav-links {
    gap: 0.45rem;
}

.mobile-nav-links .nav-link {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link:focus {
    background: rgba(255,255,255,0.16);
    color: #ffffff;
}

.mobile-auth {
    margin-top: auto;
}

.site-footer {
    background: #27318A;
}

.site-footer .text-white-50 {
    color: rgba(255,255,255,0.8) !important;
}

.account-toggle {
    border-width: 1.5px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.account-menu {
    min-width: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.4rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
}

.account-menu .dropdown-item {
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-weight: 600;
    color: #334155;
}

.account-menu .dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.account-menu .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.account-menu .dropdown-divider {
    margin: 0.35rem 0;
    border-color: #e2e8f0;
}

@media (max-width: 991px) {
    .navbar .navbar-nav {
        gap: 0.35rem;
        align-items: stretch;
        padding-top: 0.6rem;
    }

    .mobile-header-actions {
        display: inline-flex;
    }

    .mobile-header-actions .mobile-icon-btn i {
        font-size: 1.45rem;
    }

    .navbar .nav-link {
        padding: 0.65rem 0.75rem;
    }

    .account-menu {
        margin-top: 0.5rem;
        width: 100%;
    }
    .nav-auth, .account-toggle {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .modern-navbar .navbar-nav {
        flex-direction: row;
    }
}

.btn-primary { 
    background-color: var(--primary); 
    border-color: var(--primary); 
    font-weight: 600; 
    border-radius: 12px; 
    padding: 10px 20px; 
    transition: all 0.22s cubic-bezier(.2,.9,.2,1); 
    box-shadow: 0 8px 20px rgba(39,49,138,0.08);
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    border-color: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(31,42,104,0.18); 
}
.btn-outline-primary { 
    color: var(--primary); 
    border-color: var(--primary); 
    border-radius: 12px; 
    font-weight: 600; 
}
.btn-outline-primary:hover { 
    background-color: var(--primary); 
    color: white; 
}
.btn-outline-primary:hover { box-shadow: 0 8px 18px rgba(39,49,138,0.08); }
.btn-outline-secondary { 
    font-weight: 600; 
    border-radius: 12px; 
    padding: 12px 24px; 
    transition: all 0.3s; 
}

/* --- Hlavní stránka (index.php) --- */
.hero-section { 
    position: relative;
    z-index: 20;
    overflow: visible;
    background: url('https://images.unsplash.com/photo-1593941707882-a5bba14938c7?auto=format&fit=max&q=80&w=2000') 62% center/cover no-repeat;
    padding: 110px 0 90px;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 40px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 12, 28, 0.84) 0%, rgba(7, 12, 28, 0.56) 45%, rgba(7, 12, 28, 0.20) 100%),
        linear-gradient(180deg, rgba(7, 12, 28, 0.18) 0%, rgba(7, 12, 28, 0.50) 100%);
}
.hero-content {
    position: relative;
    z-index: 30;
}
.hero-copy {
    max-width: 760px;
}

/* Hero: zvýraznění akcentu - glass pill pro lepší čitelnost */
.hero-section h1 {
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
    font-size: clamp(2.15rem, 4.8vw, 4.1rem);
    margin-bottom: 1.4rem;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}
.hero-section h1 .hero-accent {
    color: #3846c9;
    font-weight: 800;
    display: inline;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    transform: none;
    border-radius: 0;
    text-decoration: none;
}
.hero-section .lead {
    max-width: 42ch;
    color: rgba(255,255,255,0.96);
    font-size: clamp(1.02rem, 1.55vw, 1.35rem);
    line-height: 1.58;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.hero-search-wrap {
    position: relative;
    z-index: 40;
    max-width: 920px;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 84px 0 72px;
        background-position: 68% center;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-section h1 {
        letter-spacing: -0.015em;
        margin-bottom: 1rem;
    }

    .hero-section h1 .hero-accent {
        font-weight: 800;
        color: #3846c9;
        display: inline;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-section .lead {
        max-width: none;
        font-size: 1.04rem;
        line-height: 1.55;
    }

    .hero-search-wrap {
        max-width: none;
    }
}

.search-bar-wrapper { background: white; border-radius: 99px; padding: 8px 10px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); display: flex; align-items: center; flex-wrap: wrap; }
.search-input-group { display: flex; align-items: center; padding: 10px 20px; flex: 1; border-right: 1px solid #e2e8f0; }
.search-input-group:last-of-type { border-right: none; }
.search-input-group i { color: var(--primary); font-size: 1.2rem; width: 24px; }
.search-input-group input { border: none; outline: none; background: transparent; width: 100%; font-weight: 500; color: var(--dark); padding-left: 10px; }
.search-input-group input::placeholder { color: #94a3b8; font-weight: 400; }
.search-btn { border-radius: 99px !important; padding: 14px 32px !important; font-size: 1.1rem; }
.search-actions-wrap { display: flex; align-items: center; gap: 0.75rem; margin-left: 0.75rem; }
.search-btn-location { min-width: 0; }
.search-btn-label { white-space: nowrap; }

.filter-sidebar { background: white; border-radius: 20px; padding: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; }
.form-check-input:checked { background-color: var(--success); border-color: var(--success); }

.hotel-card { border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: white; }
.hotel-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.card-img-wrapper { position: relative; height: 240px; overflow: hidden; }
.card-img-top { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hotel-card:hover .card-img-top { transform: scale(1.05); }
.badge-verified { position: absolute; top: 16px; left: 16px; background: rgba(16, 185, 129, 0.95); backdrop-filter: blur(4px); color: white; font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; z-index: 2; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.badge-unverified { position: absolute; top: 16px; left: 16px; background: rgba(100, 116, 139, 0.95); backdrop-filter: blur(4px); color: white; font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; z-index: 2; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }        
.rating-badge { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); color: var(--dark); font-weight: 800; padding: 6px 12px; border-radius: 8px; z-index: 2; font-size: 0.9rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 5px; }

.charger-info { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px 16px; margin-bottom: 1rem; }
.charger-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #065f46; font-weight: 600; margin-bottom: 6px; }
.charger-item i { width: 16px; text-align: center; }
.charger-item:last-child { margin-bottom: 0; }

/* --- Drobečková navigace (sjednocená) --- */
.app-breadcrumb {
    margin-bottom: 1rem;
}

.app-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.app-breadcrumb .breadcrumb-item,
.app-breadcrumb .breadcrumb-item a {
    font-size: 0.9rem;
}

.app-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.app-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.app-breadcrumb .breadcrumb-item.active {
    color: #475569;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .app-breadcrumb {
        display: none !important;
    }
}

.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; border-radius: 24px; overflow: hidden; }
.gallery-item { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; cursor: pointer; }
.gallery-item:hover { transform: scale(1.02); filter: brightness(0.9); }
.item-main { grid-column: 1 / 2; grid-row: 1 / 3; }

.ev-box { background: #f0fdf4; border: 1px solid #86efac; border-radius: 20px; padding: 30px; position: relative; overflow: hidden; }
.ev-box::after { content: '\f0e7'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -20px; bottom: -40px; font-size: 150px; color: #bbf7d0; opacity: 0.4; z-index: 0; pointer-events: none; }
.ev-box > * { position: relative; z-index: 1; }

.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: #e0f2fe; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 10px; }

.booking-widget { background: white; border: 1px solid #e2e8f0; border-radius: 24px; padding: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); position: sticky; top: 100px; }

/* --- Patička --- */
.footer-link { color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: white; }
.social-icon { color: rgba(255, 255, 255, 0.5); font-size: 1.25rem; transition: color 0.3s, transform 0.3s; display: inline-block; }
.social-icon:hover { color: white; transform: translateY(-3px); }

/* --- Našeptávač (Mapy.cz Suggest) --- */
.search-bar-wrapper { 
    position: relative;
    isolation: isolate;
}

#suggestions-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    z-index: 6000;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

#suggestions-box.active {
    display: block;
}

.suggestion-item {
    padding: 14px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f5f9;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: #f8fafc; }

@media (max-width: 767.98px) {
    .search-bar-wrapper {
        border-radius: 28px;
        padding: 10px;
        gap: 0.75rem;
    }

    .search-input-group {
        width: 100%;
        flex: 1 1 100%;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.9rem 1rem;
        min-width: 0;
    }

    .search-input-group input {
        min-width: 0;
        font-size: 0.98rem;
        padding-left: 0.85rem;
    }

    .search-actions-wrap {
        width: 100%;
        margin-left: 0;
        gap: 0.6rem;
    }

    .search-btn {
        flex: 1 1 0;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.9rem 1rem !important;
        font-size: 0.96rem;
        min-height: 48px;
        margin-left: 0 !important;
    }

    .search-btn i {
        margin-right: 0 !important;
    }

    #current-location-search-btn {
        background: #f8fafc;
        border-color: #dbe3ee;
        color: #0f172a;
    }

    .search-btn-submit {
        box-shadow: 0 10px 20px rgba(39, 49, 138, 0.2);
    }

    #suggestions-box {
        top: calc(100% + 10px);
        border-radius: 20px;
    }
}
.suggestion-item strong { color: var(--primary); }

/* --- Account Page Styles --- */
.profile-hero {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    margin-bottom: 32px;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: pointer;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.08);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
}

#avatarUploadInput {
    display: none;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
    margin-bottom: 4px;
}

.profile-name:hover {
    color: var(--primary);
}

.editable-name-input {
    display: none;
    font-size: 1.75rem;
    font-weight: 700;
    padding: 8px;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.profile-email {
    color: #64748b;
    font-size: 0.95rem;
    margin: 8px 0 16px 0;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

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

.profile-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.settings-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.settings-card h4 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.settings-card details {
    margin-top: 12px;
}

.settings-card summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--primary);
    user-select: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.settings-card summary:hover {
    color: var(--primary-hover);
}

.accommodations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .accommodations-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.accommodation-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.accommodation-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(39, 49, 138, 0.1);
}

.accommodation-info {
    flex: 1;
}

.accommodation-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.accommodation-address {
    font-size: 0.9rem;
    color: #64748b;
}

.accommodation-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pill.status-new {
    background-color: #dbeafe;
    color: #075985;
}

.status-pill.status-public {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pill.status-rejected {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.status-pill.status-other {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Avatar edit icon pointer */
.avatar-edit-icon { cursor: pointer; }

/* Crop modal */
.crop-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.crop-modal-backdrop {
    position: absolute; inset: 0; background: rgba(2,6,23,0.6);
}
.crop-modal-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 760px);
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.2);
}
.crop-canvas-wrapper { position: relative; width:100%; max-width:720px; margin:0 auto; }
.crop-canvas-wrapper canvas { width:100%; height:auto; display:block; border-radius:8px; background:#fff; }
.crop-circle-overlay { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:60%; aspect-ratio:1/1; border-radius:50%; box-shadow: 0 0 0 9999px rgba(0,0,0,0.45); border:3px solid rgba(255,255,255,0.85); pointer-events:none; }

.accommodation-status { margin-top:8px; }

.edit-name-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 0 6px;
    color: var(--primary);
}
.edit-name-icon:hover { background: rgba(39,49,138,0.06); }
