/* ===================================
   Služby (Services) Page Styles
   =================================== */

/* Services Overview Grid */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-overview-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-overview-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-overview-card:hover .service-overview-icon {
    transform: scale(1.1);
}

.service-overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.service-overview-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-overview-link {
    color: #1565c0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.service-overview-link:hover {
    gap: 0.75rem;
    color: #0d47a1;
}

/* Service Detail */
.service-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.service-detail.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.service-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.service-detail-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    line-height: 1.2;
}

.service-detail-desc {
    font-size: 1.125rem;
    color: #718096;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-detail-content h4 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-detail-content h4 i {
    color: #1565c0;
}

/* Service Features List */
.service-features {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.service-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:hover {
    background: rgba(21, 101, 192, 0.03);
    padding-left: 0.5rem;
}

.service-features i.fa-check {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-features i.fa-map-marker-alt {
    color: #1565c0;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Service Steps */
.service-steps {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.service-steps li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.service-steps li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(21, 101, 192, 0.25);
}

.service-steps strong {
    color: #2d3748;
    margin-bottom: 0.25rem;
    display: block;
    font-size: 1.1rem;
}

.service-steps p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* Price Box */
.service-price-box {
    background: #f5f7fa;
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.service-price-box h4 {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.35rem;
}

.price-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.price-row:hover {
    transform: translateX(5px);
}

.price-row span {
    color: #2d3748;
    font-size: 1rem;
    flex: 1;
    padding-right: 1rem;
}

.price-row strong {
    color: #1565c0;
    font-size: 1.35rem;
    font-weight: 700;
}

.price-note {
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
}

.poster-price-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0.75rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.poster-price-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 0.6rem;
    overflow: hidden;
}

.poster-price-table thead th {
    background: #eff6ff;
    color: #1e3a8a;
    text-align: left;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.7rem 0.65rem;
    border-bottom: 1px solid #dbe5f0;
}

.poster-price-table tbody td {
    font-size: 0.88rem;
    color: #334155;
    padding: 0.62rem 0.65rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
}

.poster-price-table tbody tr:last-child td {
    border-bottom: none;
}

.poster-mini-form-wrap {
    background: #f8fbff;
    border: 1px solid #dbe5f0;
    border-radius: 0.9rem;
    padding: 1rem;
    margin-top: 1rem;
}

.poster-mini-form-wrap h4 {
    margin-top: 0 !important;
    margin-bottom: 0.45rem !important;
    color: #1e3a8a;
}

.poster-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin: 0.85rem 0;
}

.booking-mini-submit-btn {
    border: none !important;
    border-radius: 0.72rem !important;
    padding: 0.72rem 0.9rem !important;
    font-weight: 700 !important;
}

.poster-form-message {
    margin: 0.8rem 0 0;
    padding: 0.72rem 0.9rem;
    border-radius: 0.72rem;
    font-weight: 600;
}

.kroje-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.kroje-gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.6rem;
    border: 1px solid #dbe5f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.82);
    z-index: 9999;
    padding: 1rem;
}

.image-lightbox img {
    max-width: min(1100px, 95vw);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 0.7rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* Gallery */
.service-detail-gallery {
    position: relative;
}

.detail-gallery-main {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.detail-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.detail-gallery-main:hover img {
    transform: scale(1.02);
}

.detail-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.detail-gallery-thumbs img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.detail-gallery-thumbs img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    border-color: #1565c0;
}

/* Services CTA Section */
.services-cta-section {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.95) 0%, rgba(13, 71, 161, 0.95) 100%);
    padding: 5rem 0;
    text-align: center;
    margin-top: 0;
}

.services-cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.services-cta-buttons .btn-primary {
    background: white;
    color: #1565c0;
    border: none;
}

.services-cta-buttons .btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
}

.services-cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.services-cta-buttons .btn-secondary:hover {
    background: white;
    color: #1565c0;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail,
    .service-detail.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-detail.reverse .service-detail-gallery {
        order: -1;
    }
    
    .service-detail-gallery {
        position: static;
    }
    
    .service-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .service-overview-card {
        padding: 2rem 1.5rem;
    }
    
    .service-overview-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .service-detail-title {
        font-size: 1.75rem;
    }
    
    .service-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-price-box {
        padding: 1.5rem;
    }
    
    .price-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .detail-gallery-thumbs img {
        height: 80px;
    }
    
    .services-cta-content h2 {
        font-size: 1.75rem;
    }
    
    .services-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-cta-buttons .btn-primary,
    .services-cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .detail-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .detail-gallery-thumbs img {
        height: 60px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-steps li {
        gap: 1rem;
    }
}

/* Room booking form and calendar */
.service-price-box--request {
    margin-bottom: 1.5rem;
}

.booking-form-wrap,
.booking-calendar-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d8e2ef;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
}

.booking-form-wrap h4,
.booking-calendar-wrap h4 {
    margin-top: 0 !important;
    margin-bottom: 0.65rem !important;
    color: #1e3a8a;
}

.booking-form-message {
    margin: 1rem 0 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.booking-form-message--success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.booking-form-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
    margin: 1rem 0 1.25rem;
}

.booking-field label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.45rem;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    padding: 0.68rem 0.75rem;
    font-size: 0.98rem;
    background: #fff;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.booking-field textarea {
    resize: vertical;
    min-height: 98px;
}

.booking-field--full {
    grid-column: 1 / -1;
}

.booking-calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.9rem 0 0.75rem;
}

#bookingMonthLabel {
    color: #1f2937;
    font-size: 1.2rem;
    text-transform: capitalize;
}

.booking-nav-btn {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    border: 1px solid #b7c7dc;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
    color: #1565c0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(21, 101, 192, 0.18);
}

.booking-weekdays,
.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.booking-weekdays {
    margin-bottom: 0.5rem;
}

.booking-weekdays span {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.booking-day {
    min-height: 66px;
    border: 1px solid #dbe5f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 0.65rem;
    padding: 0.45rem 0.4rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.booking-day--empty {
    border: none;
    background: transparent;
    min-height: 58px;
}

.booking-day-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
}

.booking-day-status {
    font-size: 0.68rem;
    font-weight: 700;
    color: #b91c1c;
    line-height: 1.1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 0.16rem 0.34rem;
    width: fit-content;
}

.booking-day--free:hover {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.booking-day--reserved {
    background: #fef2f2;
    border-color: #fca5a5;
    cursor: not-allowed;
}

.booking-day--past {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.booking-day--past .booking-day-number {
    color: #94a3b8;
}

.booking-submit-btn {
    width: 100%;
    border: none !important;
    border-radius: 0.8rem !important;
    padding: 0.9rem 1rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%) !important;
    box-shadow: 0 10px 18px rgba(21, 101, 192, 0.28);
}

.booking-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(21, 101, 192, 0.35);
}

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

    #bookingMonthLabel {
        font-size: 1.05rem;
    }

    .booking-day-status {
        font-size: 0.6rem;
        padding: 0.14rem 0.3rem;
    }

    .poster-mini-grid {
        grid-template-columns: 1fr;
    }

    .kroje-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional responsive refinements for the whole Services page */
@media (max-width: 1024px) {
    .service-detail {
        gap: 2.1rem;
    }

    .service-detail-content h4 {
        margin-top: 1.55rem;
    }

    .service-price-box {
        padding: 1.3rem;
    }

    .poster-price-table {
        min-width: 620px;
    }
}

@media (max-width: 860px) {
    .service-detail-title {
        font-size: 1.6rem;
    }

    .service-detail-desc {
        font-size: 1rem;
        line-height: 1.65;
    }

    .service-features li {
        align-items: flex-start;
        gap: 0.7rem;
        line-height: 1.5;
    }

    .booking-form-wrap,
    .booking-calendar-wrap,
    .poster-mini-form-wrap {
        padding: 1.05rem;
    }

    .booking-mini-submit-btn,
    .booking-submit-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .service-overview-card {
        padding: 1.35rem 1rem;
        border-radius: 0.8rem;
    }

    .service-overview-card:hover {
        transform: none;
    }

    .service-overview-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
        border-radius: 0.85rem;
        margin-bottom: 0.9rem;
    }

    .service-overview-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.55rem;
    }

    .service-detail-title {
        font-size: 1.44rem;
        margin-bottom: 0.95rem;
    }

    .service-detail-content h4 {
        font-size: 1.05rem;
        margin: 1.2rem 0 0.65rem;
    }

    .service-features {
        margin-bottom: 1.15rem;
    }

    .service-features li {
        font-size: 0.96rem;
        padding: 0.6rem 0;
    }

    .service-features li:hover {
        padding-left: 0;
    }

    .service-price-box {
        margin: 1.3rem 0;
        border-radius: 0.8rem;
        padding: 0.95rem;
    }

    .service-price-box h4 {
        font-size: 1.08rem;
        margin-bottom: 0.7rem !important;
    }

    .price-note {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .price-row {
        padding: 0.75rem 0.78rem;
        text-align: left;
    }

    .price-row span {
        font-size: 0.92rem;
        padding-right: 0;
    }

    .price-row strong {
        font-size: 1.03rem;
        width: 100%;
    }

    .poster-price-table {
        min-width: 560px;
    }

    .poster-price-table thead th,
    .poster-price-table tbody td {
        font-size: 0.8rem;
        padding: 0.5rem 0.45rem;
    }

    .booking-grid,
    .poster-mini-grid {
        gap: 0.72rem;
        margin-bottom: 0.9rem;
    }

    .booking-field label {
        font-size: 0.94rem;
    }

    .booking-field input,
    .booking-field select,
    .booking-field textarea {
        font-size: 0.95rem;
        padding: 0.62rem 0.64rem;
    }

    .booking-calendar-controls {
        margin: 0.55rem 0 0.55rem;
    }

    .booking-weekdays,
    .booking-calendar-grid {
        gap: 0.35rem;
    }

    .booking-day {
        min-height: 54px;
        padding: 0.3rem;
        border-radius: 0.52rem;
    }

    .booking-day-number {
        font-size: 0.82rem;
    }

    .booking-day-status {
        font-size: 0.53rem;
    }

    .kroje-gallery-grid {
        gap: 0.55rem;
    }

    .kroje-gallery-grid img {
        height: 135px;
    }

    .services-cta-section {
        padding: 2.4rem 0;
    }

    .services-cta-content h2 {
        font-size: 1.3rem;
    }

    .services-cta-content p {
        font-size: 0.94rem;
        margin-bottom: 1.2rem;
    }
}
