/* ====================================================
   PlaceEvent – global + dashboard styles
   ==================================================== */

/* --- Public page overrides --- */
:root {
    --bs-primary: #1D4ED8;
    --bs-primary-rgb: 29, 78, 216;
    --sidebar-bg: #0d1b2a;
    --sidebar-width: 240px;
}

/* ====================================================
   For Owners landing page
   ==================================================== */

.owners-hero {
    position: relative;
    min-height: 440px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1D4ED8 100%);
    display: flex;
    align-items: center;
}

.owners-hero__overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.owners-hero__content {
    position: relative;
    padding: 4rem 1rem;
}

.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }

.owners-feature-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    border-radius: 16px;
}

.owners-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1D4ED8;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owners-stat__number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1D4ED8;
    line-height: 1;
}

.owners-stat__label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.owners-cta {
    background: linear-gradient(135deg, #0d1b2a 0%, #1D4ED8 100%);
    border-radius: 1rem;
}

/* ====================================================
   End For Owners
   ==================================================== */

.badge-new {
    background-color: #DBEAFE;
    color: #1D4ED8;
}


/* Venue show page — type badge */
.hero-badge-type {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Force-override any framework SVG sizing in sidebar/stats */
.sidebar svg,
.stat-icon-box svg,
.brand-link svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ====================================================
   Hero Carousel (catalog page)
   ==================================================== */

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 480px;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide--wedding {
    background-image: url("img/wesele-qjnKZGi.png");
    background-color: #1e3a5f;
}

.hero-slide--conference {
    background-image: url("img/biznes-nGU58fk.png");
    background-color: #134e4a;
}

.hero-slide--party {
    background-image: url("img/komunia_urodziny_chrzest-QGAfm1B.png");
    background-color: #3b0764;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(8, 15, 35, 0.88) 0%,
        rgba(8, 15, 35, 0.65) 45%,
        rgba(8, 15, 35, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    max-width: 620px;
}

.hero-tag {
    display: inline-block;
    background: rgba(29, 78, 216, 0.75);
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.05rem;
    opacity: 0.88;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    max-width: 480px;
}

@media (max-width: 576px) {
    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item { height: 360px; }
    .hero-content h2 { font-size: 1.6rem; }
    .hero-content p  { font-size: 0.9rem; margin-bottom: 1.25rem; }
}

/* ====================================================
   Venue detail hero (show page)
   ==================================================== */

.venue-detail-hero {
    background: linear-gradient(120deg, #0a0f23 0%, #1e3a5f 55%, #1D4ED8 100%);
    padding: 2.5rem 0 2.25rem;
    position: relative;
    overflow: hidden;
}

.venue-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(29, 78, 216, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(139, 92, 246, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.venue-detail-hero .container { position: relative; z-index: 1; }

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Website link in hero */
.website-link-hero {
    opacity: 0.75;
    transition: opacity 0.15s;
}
.website-link-hero:hover { opacity: 1; }

/* ====================================================
   Photo Gallery (public show page)
   ==================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    background: #f1f5f9;
}

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

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

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

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.gallery-zoom-icon {
    color: #fff;
    font-size: 1.75rem;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
}

.gallery-item:hover .gallery-zoom-icon { opacity: 1; }

/* Lightbox modal */
.gallery-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.375rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 1;
}

.gallery-nav:hover { background: rgba(255, 255, 255, 0.3); }
.gallery-nav--prev { left: 0.5rem; }
.gallery-nav--next { right: 0.5rem; }

@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================
   Photo management dashboard (provider)
   ==================================================== */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.photo-thumb-wrap {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f1f5f9;
}

.photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-delete-btn {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.photo-thumb-wrap:hover .photo-delete-btn { opacity: 1; }

/* ====================================================
   Dashboard Layout
   ==================================================== */

.dashboard-body {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
    margin: 0;
    padding: 0;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    color: #8899aa;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.375rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-link:hover { color: #fff; }

.brand-svg {
    width: 22px;
    height: 22px;
    color: #3b82f6;
    flex-shrink: 0;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.nav-section {
    display: block;
    padding: 1rem 1.25rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d5166;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.6rem 1.25rem;
    color: #7a8fa3;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.12s, color 0.12s;
}

.nav-item:hover {
    color: #c8d8e8;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.nav-item.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.nav-item.active .nav-icon { opacity: 1; }

/* Sidebar footer */
.sidebar-footer {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1e3a5f;
    color: #7db4e8;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-email {
    font-size: 0.78rem;
    color: #6a8099;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.nav-logout { color: #5a7a90; }

/* --- Main content --- */
.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem 2.25rem;
    min-height: 100vh;
}

/* ====================================================
   Dashboard page elements
   ==================================================== */

.page-header {
    margin-bottom: 1.75rem;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.page-header .page-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

/* Stat cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.stat-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-box svg {
    width: 18px;
    height: 18px;
}

.stat-icon-blue   { background: #eff6ff; color: #3b82f6; }
.stat-icon-green  { background: #f0fdf4; color: #22c55e; }
.stat-icon-amber  { background: #fffbeb; color: #f59e0b; }
.stat-icon-purple { background: #faf5ff; color: #a855f7; }

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.stat-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

/* Venue hero card */
.venue-hero-card {
    border-radius: 0.875rem;
    overflow: hidden;
    position: relative;
    height: 200px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.venue-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1d33 50%, #1a0a2e 100%);
}

.venue-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(186, 50, 180, 0.35) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 70%, rgba(80, 60, 200, 0.3) 0%, transparent 55%);
}

.venue-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.venue-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 2rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.625rem;
    width: fit-content;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-dot.published { background: #4ade80; }
.status-dot.draft     { background: #fbbf24; }

.venue-hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.venue-hero-meta {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}

/* Dashboard two-column grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
}

/* Content cards */
.content-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.content-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
}

.content-card-body {
    padding: 1.25rem;
}

/* Mini calendar */
.mini-calendar {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.mini-calendar-header {
    background: #1e3a5f;
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-calendar-month {
    font-size: 0.875rem;
    font-weight: 700;
}

.mini-calendar-year {
    font-size: 0.75rem;
    opacity: 0.7;
}

.cal-grid {
    padding: 0.75rem;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.cal-weekday {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #94a3b8;
    padding: 4px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: #374151;
    padding: 5px 2px;
    border-radius: 0.375rem;
    cursor: default;
}

.cal-day.today {
    background: #1e3a5f;
    color: white;
    font-weight: 700;
}

.cal-day.unavailable {
    background: #fee2e2;
    color: #dc2626;
    font-weight: 600;
}

.cal-day.empty { color: transparent; }

/* Form cards (venue profile edit) */
.form-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.form-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ====================================================
   Responsive
   ==================================================== */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .dashboard-main { margin-left: 0; padding: 1rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================
   Site Footer
   ==================================================== */
.site-footer {
    background: #0d1b2a;
    color: #8899aa;
    font-size: 0.875rem;
}

.site-footer__brand {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.site-footer__brand:hover { color: #93c5fd; }

.site-footer__tagline {
    color: #6a8099;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
}

.site-footer__heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d5166;
    margin-bottom: 0.875rem;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__links a {
    color: #7a8fa3;
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer__links a:hover { color: #e2e8f0; }

.site-footer__divider {
    border-color: rgba(255, 255, 255, 0.07);
    margin: 2rem 0 1.25rem;
}

.site-footer__copy {
    color: #3d5166;
}
