﻿.hero-section {
    background-image: url('/images/axis.jpg');
    background-size: cover;
    background-position: revert-layer;
    background-repeat: no-repeat;
    min-height: 50vh;
    display: flex;
    flex-direction: column; /* <--- important for stacking h1 and button vertically */
    align-items: center; /* center horizontally */
    justify-content: center; /* center vertically */
    text-align: center;
    color: white;
}

    .hero-section h2 {
        position: relative;
        top: -50px;
        color: darkblue;
        font-size: 3rem;
        font-style: italic;
        font-family: 'Book Antiqua';
        padding: 1rem 2rem;
        border: none;
    }

.custom-button {
    margin-top: 120px;
    padding: 12px 24px;
    background-color: #258cfb;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

    .custom-button:hover {
        background-color: #1861ac;
    }

    .custom-button:active {
        background-color: #3e8e41;
    }

.contact-section {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f9f9f9, #eef2f3);
    border-radius: 12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

    .contact-section p {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .contact-section strong {
        margin-left: 0.3rem;
    }

    .contact-section a {
        margin-left: 0.3rem;
        color: #3498db;
        text-decoration: none;
        font-weight: 500;
    }

        .contact-section a:hover {
            text-decoration: underline;
        }

.reservation-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.date-picker-container {
    margin-bottom: 2rem;
}

.date-picker {
    padding: 0.6rem 1rem;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: white;
    color: #333;
    text-align: center;
    cursor: pointer;
}

.date-picker:hover {
    border-color: #3498db;
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.3);
}

.date-picker:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.slots-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    justify-content: center;
}

.slot-button {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    border: 1px solid #3498db;
    color: #3498db;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.slot-button:hover {
    background-color: #3498db;
    color: white;
}

.slot-button.reserved {
    background-color: #3498db;
    color: white;
}

.slot-button.reserved:hover {
    background-color: #2d80c8;
}

.input-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
}

.technique-dropdown {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.technique-dropdown:hover {
    border-color: #3498db;
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.3);
}

.technique-dropdown:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
    outline: none;
}

.rezervovat-container {
    margin-top: 40px;
    text-align: center;
}

/* === ULTRA-NARROW FIX: keep action buttons on one line === */

/* Apply to both main reservation and team card buttons */
a.btn-rezervovat,
button.btn-rezervovat,
.btn.btn-rezervovat,
.btn-primary-ghost-lg {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    /* absolutely forbid wrapping */
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-wrap: nowrap !important;
    width: auto !important; /* let it size to content */
    max-width: 100% !important; /* don't overflow container */
    box-sizing: border-box;
}

/* Normal compact sizing (applies everywhere) */
a.btn-rezervovat,
button.btn-rezervovat,
.btn.btn-rezervovat {
    border: none;
    border-radius: 12px;
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: background-color .3s ease, transform .1s ease;
    /* tighter base so we have headroom on tiny phones */
    font-size: 0.9rem;
    padding: 8px 14px;
}

/* Team card ghost button also tightened a bit */
.btn-primary-ghost-lg {
    padding: 10px 16px !important;
    font-weight: 800;
    border-width: 2px;
}

/* Make sure the containers don't squeeze the buttons */
.rezervovat-container,
.card-actions-lg {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 0 !important;
}

    .rezervovat-container > *,
    .card-actions-lg > * {
        flex: 0 0 auto !important; /* don't let flex shrink the button */
    }

/* ---- Very narrow phones ---- */
@media (max-width: 340px) {
    a.btn-rezervovat,
    button.btn-rezervovat,
    .btn.btn-rezervovat {
        font-size: 0.78rem !important;
        padding: 6px 10px !important;
        letter-spacing: 0 !important;
    }

    .btn-primary-ghost-lg {
        font-size: 0.78rem !important;
        padding: 8px 12px !important;
    }
}

/* ---- Ultra-narrow (older 320px & smaller) ---- */
@media (max-width: 320px) {
    a.btn-rezervovat,
    button.btn-rezervovat,
    .btn.btn-rezervovat {
        font-size: 0.7rem !important;
        padding: 6px 8px !important;
    }

    .btn-primary-ghost-lg {
        font-size: 0.7rem !important;
        padding: 7px 10px !important;
    }
}

/* ---- Emergency micro size (280px devices) ---- */
@media (max-width: 285px) {
    a.btn-rezervovat,
    button.btn-rezervovat,
    .btn.btn-rezervovat,
    .btn-primary-ghost-lg {
        font-size: 0.64rem !important;
        padding: 6px 8px !important;
    }
}

/* Emergency tier for ultra narrow 150px screens */
@media (max-width: 180px) {
    .btn-rezervovat,
    .btn-primary-ghost-lg {
        font-size: 0.55rem !important;
        padding: 4px 6px !important;
        letter-spacing: 0 !important;
    }
}

/* If you want to shorten label automatically via CSS pseudo */
@media (max-width: 180px) {
    .btn-rezervovat::after {
        content: "Rez."; /* fallback shorter text */
    }

    .btn-rezervovat span,
    .btn-rezervovat::before {
        display: none !important; /* hide normal text if wrapped in <span> */
    }
}

/* If Bootstrap’s .btn sets width:100% somewhere, kill it */
.btn-rezervovat,
.btn-primary-ghost-lg {
    width: auto !important;
}

/* In case parent text alignment causes weird breaks */
.card-actions-lg,
.rezervovat-container {
    text-align: center !important;
}



.validation-message {
    color: red;
    font-size: 0.875rem; /* ~14px */
    margin-top: 4px;
    display: block;
}

.reservation-list-container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff, #f5f9fc);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.table-wider {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 0.9rem;
}

.table-wider thead th {
    background-color: #e3effa;
    text-align: left;
    padding: 0.35rem 1rem;
    font-weight: 600;
    color: #2c3e50;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.table-wider tbody tr {
    transition: background-color 0.2s ease-in-out;
    border-radius: 0.5rem;
}

.table-wider tbody td {
    background-color: #ffffff;
    padding: 0.75rem 1rem;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
}

.table-wider tbody tr + tr {
    margin-top: 0.5rem;
}

.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pagination button:hover {
    background-color: #2b7bb9;
}

.pagination button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


/* Row coloring based on reservation status */
.row-pending {
    color: #856404; /* dark yellow text */
    background-color: #fff9db; /* light yellow background */
}

.row-accepted {
    color: #155724; /* dark green text */
    background-color: #e6f4ea; /* light green background */
}

.row-declined {
    color: #721c24; /* dark red text */
    background-color: #fcebea; /* light red background */
}

.row-unknown {
    color: #383d41;
    background-color: #f0f0f0;
}

/* Optional: improve contrast of buttons inside colored rows */
.table button {
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: start;
}

.action-buttons .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
}

#therapistFilter {
    appearance: none;
    background-color: #f8f9fa;
    color: #343a40;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 220px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='70,100 100,40 40,40' fill='%236c757d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 2rem;
}

#therapistFilter:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

#therapistFilter:hover {
    border-color: #adb5bd;
}

.filters {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label[for="therapistFilter"] {
    font-weight: 600;
    color: #212529;
}

.time-slot-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
    font-size: 0.95rem;
}

.time-slot-table thead th {
    background: linear-gradient(120deg, #e3effa, #d9e8f6);
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #2c3e50;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.time-slot-table tbody td {
    background-color: #ffffff;
    padding: 1rem;
    vertical-align: top;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.day-label {
    font-weight: 600;
    font-size: 1rem;
    color: #2d3748;
    white-space: nowrap;
}

.slot-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.time-slot {
    background-color: #eaf4fe;
    border: 1px solid #c9def5;
    border-radius: 20px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    color: #333;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 150px;
}

.time-slot:hover {
    background-color: #d6eaff;
}

.remove-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; /* fixed size for symmetry */
    height: 28px;
    padding: 0; /* no extra padding, centering handles it */
    margin-left: 6px; /* space from the time text */
    font-size: 16px; /* make ❌ readable */
    line-height: 1;
    background: transparent;
    border: none;
    cursor: pointer;
}

.remove-slot:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.add-slot-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.add-slot-form input[type="time"] {
    width: 100px;
    min-width: 80px;
    flex-shrink: 0;
}

input[type="time"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="time"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 6px rgba(52, 152, 219, 0.2);
    outline: none;
}

.time-slot.highlighted {
    background-color: #d2ebff !important;
    animation: fadeOutHighlight 1.5s ease forwards;
}

@keyframes fadeOutHighlight {
    0% {
        background-color: #d2ebff;
    }

    100% {
        background-color: #eaf4fe;
    }
}

/* === Team (Therapists) Page =============================== */

.team-wrap {
    max-width: 1200px; /* širší */
    margin: 2.75rem auto;
    padding: 0 1rem;
}

.team-title {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 2rem 0;
}

/* Grid pro medailonky – na desktopu jeden uprostřed */
.team-grid-lg {
    display: flex;
    flex-direction: column;
    align-items: center; /* vycentrování */
    gap: 2.5rem;
}

/* Karta medailonku */
.therapist-card-lg {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e9eef5;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease;
    width: 100%;
    max-width: 850px; /* širší než předtím */
}

    .therapist-card-lg:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

/* Foto nahoře, vycentrované */
.therapist-media {
    margin-bottom: 1.5rem;
}

.therapist-photo-lg {
    width: 240px;
    height: 240px;
    border-radius: 9999px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    background: linear-gradient(120deg,#e3effa,#d9e8f6);
}

@media (min-width: 900px) {
    .therapist-photo-lg {
        width: 260px;
        height: 260px;
    }
}

/* Jméno */
.therapist-header {
    margin: 0 0 .75rem 0;
}

.therapist-name-lg {
    font-size: 2rem;
    font-weight: 800;
    color: #23313f;
    margin: 0;
    line-height: 1.15;
}

/* Techniky – „chips“ pod jménem */
.tech-chips-lg {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: .5rem 0 1.2rem 0;
}

.chip-lg {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: #eaf4fe;
    border: 1px solid #c9def5;
    color: #2c3e50;
    font-size: .95rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Bio – větší řádkování a vzdušnost */
.therapist-bio-lg {
    margin-top: .5rem;
    margin-bottom: 1.2rem;
    color: #3f4b59;
    line-height: 1.75;
    font-size: 1.05rem;
    max-width: 70ch;
}

    .therapist-bio-lg p {
        margin: .55rem 0;
    }

    .therapist-bio-lg ul {
        margin: .45rem 0 .8rem 1.1rem;
        padding: 0;
        text-align: left;
    }

    .therapist-bio-lg li {
        margin: .3rem 0;
    }

/* Kontakty */
.therapist-contacts-lg {
    display: grid;
    gap: 10px;
    margin: .75rem 0 1.3rem 0;
}

.contact-row-lg {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: center;
    font-size: 1rem;
}

.contact-label-lg {
    color: #6b7280;
    min-width: 72px;
}

.contact-link-lg {
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
}

    .contact-link-lg:hover {
        text-decoration: underline;
    }

/* Akce */
.card-actions-lg {
    margin-top: .5rem;
    display: flex;
    justify-content: center;
}

.btn-primary-ghost-lg {
    border: 2px solid #3498db;
    color: #3498db;
    background: transparent;
    padding: 13px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .2px;
    transition: background-color .2s ease, color .2s ease, transform .05s ease, box-shadow .15s ease;
}

    .btn-primary-ghost-lg:hover {
        background-color: #3498db;
        color: #fff;
        box-shadow: 0 6px 18px rgba(52,152,219,0.25);
    }

    .btn-primary-ghost-lg:active {
        transform: translateY(1px);
    }

/* Lepší mezery na mobilu */
@media (max-width: 480px) {
    .therapist-card-lg {
        padding: 2rem 1.5rem;
    }

    .therapist-photo-lg {
        width: 200px;
        height: 200px;
    }

    .therapist-name-lg {
        font-size: 1.7rem;
    }
}

/* === Mobile responsiveness tweaks === */

/* Tablets and smaller */
@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
        padding: 1.5rem;
        background-position: center;
    }

    .hero-section h2 {
        font-size: 2rem;
        top: 0;
        padding: 0.5rem;
    }

    .custom-button {
        margin-top: 1.5rem;
        font-size: 1.2rem;
        padding: 10px 18px;
        width: auto;
    }

    .contact-section {
        padding: 1rem;
    }

    .contact-section p {
        font-size: 1rem;
    }

    iframe {
        height: 300px !important;
    }
}

/* Phones and very small screens */
@media (max-width: 480px) {
    .hero-section {
        min-height: auto;
        padding: 1rem;
        flex-direction: column;
    }

    .hero-section h2 {
        font-size: 1.4rem;
        line-height: 1.4;
        padding: 0.5rem;
    }

    .custom-button {
        font-size: 1rem;
        padding: 8px 14px;
        margin-top: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .contact-section {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .reservation-container,
    .reservation-list-container {
        padding: 1rem;
    }

    .input-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .form-group {
        min-width: unset;
        width: 100%;
    }

    .therapist-card-lg {
        padding: 1.5rem 1rem;
    }

    .therapist-photo-lg {
        width: 160px;
        height: 160px;
    }

    .therapist-name-lg {
        font-size: 1.5rem;
    }

    .tech-chips-lg {
        gap: 8px;
    }
}

/* Tablets and smaller */
@media (max-width: 768px) {
    .reservation-container {
        padding: 1rem;
    }

    .reservation-container h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .input-row {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .form-group {
        min-width: unset;
        width: 100%;
    }

    .technique-dropdown,
    .date-picker {
        width: 100%;
        font-size: 1rem;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .slot-button {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .alert {
        font-size: 0.9rem;
    }
}

/* Phones and very small screens */
@media (max-width: 480px) {
    .reservation-container {
        padding: 0.75rem;
    }

    .reservation-container h3 {
        font-size: 1.2rem;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .slot-button {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }

    .form-control {
        font-size: 0.9rem;
    }

    button.btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* Tablets and smaller */
@media (max-width: 768px) {
    .reservation-list-container {
        padding: 1rem;
    }

    /* Filter dropdown full width */
    #therapistFilter {
        min-width: unset;
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Make table scroll horizontally */
    .reservation-list-container table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-collapse: collapse;
        white-space: nowrap;
    }

    .reservation-list-container thead th,
    .reservation-list-container tbody td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    /* Pagination buttons stack on mobile */
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination button {
        width: 100%;
    }
}

/* Phones and very small screens */
@media (max-width: 480px) {
    .reservation-list-container {
        padding: 0.75rem;
    }

    .reservation-list-container h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    /* Smaller table text */
    .reservation-list-container thead th,
    .reservation-list-container tbody td {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    /* Action buttons stack vertically */
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
    }

    .action-buttons .btn-sm {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Tablets and smaller */
@media (max-width: 768px) {
    .reservation-container {
        padding: 1rem;
    }

    .reservation-container h3 {
        font-size: 1.4rem;
        text-align: center;
    }

    /* Stack dropdown filter */
    .input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .form-group {
        min-width: unset;
        width: 100%;
    }

    .technique-dropdown {
        width: 100%;
        font-size: 1rem;
    }

    /* Make ordinační hodiny table scroll horizontally */
    .time-slot-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .time-slot-table thead th,
    .time-slot-table tbody td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    /* Add-slot form wraps nicely */
    .add-slot-form {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .add-slot-form input[type="time"] {
        flex: 1 1 auto;
        min-width: 100px;
    }

    /* Vacation add form stack */
    .add-slot-form[style] {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Phones and very small screens */
@media (max-width: 480px) {
    .reservation-container h3 {
        font-size: 1.2rem;
    }

    .time-slot-table thead th,
    .time-slot-table tbody td {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .day-label {
        font-size: 0.85rem;
    }

    .time-slot {
        font-size: 0.75rem;
        padding: 3px 8px;
        max-width: 120px;
    }

    .remove-slot {
        font-size: 0.85rem;
    }

    /* Buttons smaller on mobile */
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Tablets and smaller */
@media (max-width: 768px) {
    .team-wrap {
        padding: 0 1rem;
    }

    .team-title {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .therapist-card-lg {
        padding: 2rem 1.5rem;
    }

    .therapist-photo-lg {
        width: 200px;
        height: 200px;
    }

    .therapist-name-lg {
        font-size: 1.7rem;
        text-align: center;
    }

    .tech-chips-lg {
        gap: 8px;
        justify-content: center;
    }

    .chip-lg {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .therapist-bio-lg {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Phones and very small screens */
@media (max-width: 480px) {
    .team-title {
        font-size: 1.4rem;
    }

    .therapist-card-lg {
        padding: 1.5rem 1rem;
    }

    .therapist-photo-lg {
        width: 160px;
        height: 160px;
    }

    .therapist-name-lg {
        font-size: 1.4rem;
    }

    .chip-lg {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .therapist-bio-lg {
        font-size: 0.9rem;
    }

    .contact-row-lg {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-ghost-lg {
        width: 100%;
        text-align: center;
    }
}

.hero-section {
    position: relative;
    background-image: url('/images/axis.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
    outline: none;
    box-shadow: none;
}

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        outline: none;
        box-shadow: none;
    }

        .hero-content h1 span {
            color: #00c3ff;
            outline: none;
            box-shadow: none;
        }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        outline: none;
        box-shadow: none;
    }

.custom-button {
    padding: 14px 28px;
    background-color: #258cfb;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-decoration: none;
}

    .custom-button:hover {
        background-color: #1861ac;
        transform: scale(1.03);
    }

/* Services Section */
.services-section {
    padding: 3rem 1rem;
    text-align: center;
    background: #f9f9f9;
}

    .services-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .service-card .emoji {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        display: block;
    }

/* Contact Section */
.contact-section {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #eef2f3, #ffffff);
    border-top: 1px solid #ddd;
    text-align: center;
}

    .contact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

.contact-info p {
    margin: 0.3rem 0;
}

.map-wrapper {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .custom-button:focus,
    .custom-button:active {
        outline: none;
        box-shadow: none;
    }

}

/* === Team page mobile overflow fix ======================= */

/* Let the container breathe and never exceed viewport */
.team-wrap {
    padding-inline: clamp(12px, 4vw, 24px);
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Cards should never push wider than screen */
.therapist-card-lg {
    width: 100%;
    max-width: min(850px, 100%);
}

/* Ensure names and chips can break/wrap nicely */
.therapist-name-lg {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Chip container won't stretch wider than screen */
.tech-chips-lg {
    max-width: 100%;
}

/* Chips can wrap internally (long technique names) */
.chip-lg {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

/* Bio text: allow soft hyphenation and friendly wraps */
.therapist-bio-lg,
.therapist-bio-lg p,
.therapist-bio-lg li {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal; /* prefer hyphenation over hard breaks */
    hyphens: auto;
    max-width: 100%;
}

/* Contact links (emails/phones) can break mid-string if needed */
.therapist-contacts-lg a {
    overflow-wrap: anywhere;
    word-break: break-all; /* emails can be very long; allow hard break */
}

/* Make sure images never overflow */
.team-wrap img,
.therapist-photo-lg {
    max-width: 100%;
    height: auto;
}

/* On small screens, tone down text a bit for fit */
@media (max-width: 480px) {
    .therapist-bio-lg {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .therapist-name-lg {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .contact-row-lg {
        flex-direction: column;
        align-items: center;
    }
}

/* === iPhone 12 mini (and narrow phones) button no-wrap fix === */

/* Stop Safari text auto-enlargement that causes unexpected wraps */
html {
    -webkit-text-size-adjust: 100%;
}

/* Make action buttons keep one line and size to their content */
.btn-rezervovat,
.btn-primary-ghost-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* never break into 2 rows */
    inline-size: fit-content; /* shrink to text width */
    max-inline-size: 100%; /* but never overflow the container */
    letter-spacing: 0; /* avoid width waste */
    box-sizing: border-box;
}

/* Tighten typical small-phone width (≤ 400px) */
@media (max-width: 400px) {
    .btn-rezervovat,
    .btn-primary-ghost-lg {
        font-size: 0.85rem !important; /* was ~0.9–1rem */
        padding: 8px 12px !important; /* was 10–20px+ */
        border-radius: 10px;
    }
}

/* iPhone 12 mini width tier (≈ 360–375px) */
@media (max-width: 375px) {
    .btn-rezervovat,
    .btn-primary-ghost-lg {
        font-size: 0.8rem !important;
        padding: 7px 10px !important;
    }
    /* give the button a bit more room */
    .card-actions-lg {
        padding-inline: 4px;
    }

    .therapist-card-lg {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Ultra-narrow safety (rare iframes/splits) */
@media (max-width: 340px) {
    .btn-rezervovat,
    .btn-primary-ghost-lg {
        font-size: 0.75rem !important;
        padding: 6px 8px !important;
    }
}

/* If your button sits inside a flex row, ensure it can shrink */
.card-actions-lg,
.rezervovat-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; /* keep single line layout */
    min-width: 0; /* allow children to shrink */
}

/* Prevent parent containers from forcing wraps/overflow on narrow phones */
.team-wrap {
    padding-inline: 12px;
}

.therapist-card-lg {
    max-width: 100%;
}
