html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gicon {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' -25, 'opsz' 24;
    vertical-align: middle;
}

.gicon-filled {
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' -25, 'opsz' 24;
}

.map-popup-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #c9cfd8;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' -25, 'opsz' 20;
}

.map-marker-icon {
    font-size: 35px;
    width: 35px;
    height: 35px;
    color: #1f5a41;
    font-variation-settings: 'FILL' 1, 'wght' 100, 'GRAD' -25, 'opsz' 24;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0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yNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.nav-link {
    color: white;
    text-decoration: none;
}

.active-link {
    color: yellow;
}

.nav-link:hover {
    color: white;
    text-decoration: underline;
}

/* ========================================================
   GLOBAL BUTTON STYLES (for Button.razor component)
   ======================================================== */

/* SearchBar Button */
.search-btn {
    background-color: #945F28 !important;
    border: none !important;
    border-radius: 999px !important;
    height: 100% !important;
    padding: 0 28px !important;
    margin-left: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    outline: none !important;
}

.search-btn:hover {
    background-color: #7E5022 !important;
}

.search-btn:active {
    transform: scale(0.97) !important;
}

.search-icon path {
    stroke: #FFFFFF !important;
}

.search-btn-text {
    color: #FFFFFF !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* Reservation Workflow Buttons */
.button-pending {
    width: 100% !important;
    background-color: #166534 !important;
    color: #fff !important;
    padding: 1rem !important;
    border: #002b67 solid 1px !important;
    border-radius: .6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.button-pending:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    filter: saturate(0.85) !important;
}

.button-cancel-reservation {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    border: 1px solid #c2410c !important;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.18) !important;
}

.button-cancel-reservation:hover:not(:disabled) {
    filter: brightness(1.03) !important;
}

.button {
    width: 100% !important;
    background-color: #1F5A41 !important;
    color: white !important;
    padding: .5rem !important;
    border: none !important;
    border-radius: .6rem !important;
    text-align: center !important;
}

@media (max-width: 910px) {
    .search-btn {
        margin-left: 0 !important;
        margin-top: 4px !important;
        justify-content: center !important;
        padding: 16px !important;
        height: 54px !important;
        border-radius: 16px !important;
    }
}

.scrolled-nav-link {
    color: #1F5A41;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fallback for language icon state colors (independent of scoped CSS isolation). */
.language-switcher-button .language-gicon {
    color: #ffffff !important;
}

.language-switcher-button.scrolled .language-gicon {
    color: #1f5a41 !important;
}

.scrolled-nav-link:hover {
    color: #1F5A41;
    text-decoration-color: #1F5A41;
    text-decoration: none;
    
}

.marker-offer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 70px;
    background: #fff;
    border-radius: 999rem;
    border: 0.1rem solid #1F5A41;
    font-weight: bold;
    position: relative;
    overflow: visible;
}

.marker-offer::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-bottom: 0.1rem solid #1F5A41;
    border-right: 0.1rem solid #1F5A41;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/*.custom-cluster {*/
/*    background-color: #ffa900;*/
/*    border-radius: 100%;*/
/*}*/

/*.with-offers {*/
/*    background-color: #00b0ff;*/
/*}*/

.custom-cluster {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 70px !important;
    max-width: 90px !important;
    height: 21px !important;
    background: #fff;
    border-radius: 999rem;
    border: 0.1rem solid #1F5A41;
    font-weight: bold;
    line-height: normal !important;
    text-align: center;
}

.custom-cluster::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-bottom: 0.1rem solid #1F5A41;
    border-right: 0.1rem solid #1F5A41;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: .7rem; 
    background: transparent; 
    box-shadow: none;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: transparent !important; 
    box-shadow: none !important;
}

.selected-marker {
    z-index: 9999;
    transform-origin: center bottom;
    animation: smooth-jump 1s ease-in-out infinite;
}

.marker-offer.selected-marker {
    background-color: #cff4e2;
}

.marker-offer.selected-marker::after {
    background-color: #cff4e2 !important;
}

@keyframes smooth-jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* ========================================================
   GLOBALNA NAPRAWA I STYLIZACJA BLAZOR DATE RANGE PICKER
   ======================================================== */

.daterangepicker {
    font-family: inherit !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #E5E7EB !important;
    margin-top: 12px !important;
    background-color: #FFFFFF !important;
    /* Odcięcie dziedziczenia koloru tekstu ze strony głównej */
    color: #111827 !important;
}

/* Wymuszenie zachowania tabeli */
.daterangepicker table {
    width: 100% !important;
    margin: 0 !important;
    display: table !important;
    border-collapse: collapse !important;
}

/* Twarde wymuszenie ciemnego koloru dla liczb i nazw dni (Pn, Wt) */
.daterangepicker td,
.daterangepicker th {
    text-align: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 2px !important;
    display: table-cell !important;
    vertical-align: middle !important;
    color: #111827 !important; /* Tutaj wymuszamy ciemny kolor */
}

/* Przeszłe / wyłączone dni (szare) */
.daterangepicker td.off,
.daterangepicker td.disabled {
    color: #9CA3AF !important;
    background-color: transparent !important;
}

/* Zaokrąglone dni w kalendarzu (zwykłe dostępne do kliknięcia) */
.daterangepicker td.available {
    border-radius: 999px !important;
    transition: background-color 0.2s ease !important;
}

.daterangepicker td.available:hover {
    background-color: #F3F4F6 !important;
    color: #111827 !important;
}

/* Dni w trakcie zakresu (jasnobrązowe tło, żeby ładnie łączyło daty) */
.daterangepicker td.in-range {
    background-color: rgba(148, 95, 40, 0.1) !important;
    border-radius: 0 !important;
    color: #111827 !important; /* Ciemny tekst w środku zakresu */
}

/* Aktywny wybrany dzień (Start i Koniec) - w Twoim kolorze #945F28 */
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #945F28 !important;
    color: #FFFFFF !important; /* Tylko te dni mają mieć biały tekst! */
    border-radius: 999px !important;
}

/* Wymuszenie ciemnego koloru w dropdownach od zmiany miesiąca/roku */
.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
    color: #111827 !important;
    background-color: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 4px !important;
}

/* Stylizacja przycisków Zastosuj / Anuluj w kalendarzu */
.daterangepicker .btn-primary {
    background-color: #945F28 !important;
    border-color: #945F28 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
}

.daterangepicker .btn-primary:hover {
    background-color: #7E5022 !important;
    border-color: #7E5022 !important;
}

.daterangepicker .btn-default {
    border-radius: 8px !important;
    color: #111827 !important;
}

.torun-location-page {
    --torun-bg: #f6f4ee;
    --torun-surface: rgba(255, 255, 255, 0.92);
    --torun-text: #1d2a2f;
    --torun-muted: #607178;
    --torun-line: rgba(31, 53, 59, 0.12);
    --torun-accent: #1f5a41;
    --torun-accent-dark: #173f2e;
    --torun-soft: #edf4ee;
    --torun-shadow: 0 18px 40px rgba(27, 47, 53, 0.08);
    min-height: 100vh;
    color: var(--torun-text);
    background:
        radial-gradient(circle at top left, rgba(31, 90, 65, 0.14), transparent 34%),
        radial-gradient(circle at top right, rgba(171, 124, 66, 0.12), transparent 28%),
        linear-gradient(180deg, #faf8f2 0%, var(--torun-bg) 100%);
}

.torun-location-page * {
    box-sizing: border-box;
}

.torun-location-page .content-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.torun-location-page .hero-section {
    padding: 72px 0 40px;
}

.torun-location-page .hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--torun-soft);
    border: 1px solid rgba(31, 90, 65, 0.12);
    color: var(--torun-accent-dark);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.torun-location-page .hero-section h1 {
    margin: 18px 0 16px;
    max-width: 900px;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.torun-location-page .hero-lead {
    max-width: 760px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--torun-muted);
}

.torun-location-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.torun-location-page .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.torun-location-page .action-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.torun-location-page .action-button-primary {
    background: var(--torun-accent);
    color: #fff;
    box-shadow: var(--torun-shadow);
}

.torun-location-page .action-button-primary:hover {
    background: var(--torun-accent-dark);
}

.torun-location-page .action-button-secondary {
    background: rgba(255, 255, 255, 0.75);
    color: var(--torun-text);
    border-color: var(--torun-line);
}

.torun-location-page .action-button-secondary:hover {
    background: #fff;
}

.torun-location-page .summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.torun-location-page .summary-card,
.torun-location-page .content-panel,
.torun-location-page .map-frame-card,
.torun-location-page .link-card,
.torun-location-page .faq-list details {
    background: var(--torun-surface);
    border: 1px solid var(--torun-line);
    box-shadow: var(--torun-shadow);
    backdrop-filter: blur(8px);
}

.torun-location-page .summary-card {
    border-radius: 22px;
    padding: 24px;
}

.torun-location-page .summary-card h2,
.torun-location-page .content-panel h2,
.torun-location-page .section-header h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 2vw, 2.2rem);
    line-height: 1.1;
}

.torun-location-page .summary-card p,
.torun-location-page .section-header p,
.torun-location-page .prose-panel p,
.torun-location-page .fact-list li,
.torun-location-page .link-card span,
.torun-location-page .faq-list p {
    color: var(--torun-muted);
    line-height: 1.7;
}

.torun-location-page .content-section {
    padding: 18px 0 34px;
}

.torun-location-page .two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.torun-location-page .content-panel {
    border-radius: 26px;
    padding: 28px;
}

.torun-location-page .prose-panel p {
    margin: 0 0 16px;
}

.torun-location-page .prose-panel p:last-child {
    margin-bottom: 0;
}

.torun-location-page .section-header {
    margin-bottom: 18px;
}

.torun-location-page .section-header-wide {
    max-width: 760px;
    margin-bottom: 20px;
}

.torun-location-page .info-panel h2 {
    font-size: 1.5rem;
}

.torun-location-page .fact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.torun-location-page .fact-list li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(247, 250, 248, 0.92);
    border: 1px solid rgba(31, 53, 59, 0.08);
}

.torun-location-page .map-frame-card {
    border-radius: 28px;
    overflow: hidden;
    padding: 0;
}

.torun-location-page .map-frame {
    display: block;
    width: 100%;
    min-height: 480px;
    border: 0;
}

.torun-location-page .links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.torun-location-page .link-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 20px;
    padding: 20px 22px;
    color: var(--torun-text);
    text-decoration: none;
}

.torun-location-page .link-card:hover {
    text-decoration: none;
    border-color: rgba(31, 90, 65, 0.2);
    transform: translateY(-2px);
}

.torun-location-page .faq-list {
    display: grid;
    gap: 14px;
}

.torun-location-page .faq-list details {
    border-radius: 18px;
    padding: 18px 20px;
}

.torun-location-page .faq-list summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.torun-location-page .faq-list summary::-webkit-details-marker {
    display: none;
}

.torun-location-page .faq-list p {
    margin: 14px 0 0;
}

@media (max-width: 960px) {
    .torun-location-page .summary-grid,
    .torun-location-page .links-grid,
    .torun-location-page .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .torun-location-page .hero-section {
        padding-top: 48px;
    }

    .torun-location-page .content-shell {
        width: min(1120px, calc(100% - 20px));
    }

    .torun-location-page .content-panel,
    .torun-location-page .summary-card,
    .torun-location-page .link-card,
    .torun-location-page .faq-list details {
        padding: 20px;
    }

    .torun-location-page .action-button {
        width: 100%;
    }

    .torun-location-page .map-frame {
        min-height: 360px;
    }
}
