/* Hide default theme page title above Vælvera booking app */
body.page-slug-valvera h1:not(.valvera-title),
body.page-slug-vaelvera h1:not(.valvera-title),
body.page-id-valvera h1:not(.valvera-title),
body.page-template-default h1.entry-title:not(.valvera-title),
body.page-template-default h1.wp-block-post-title:not(.valvera-title),
.entry-title:not(.valvera-title),
.wp-block-post-title:not(.valvera-title) {
    display: none !important;
}

/* Vælvera Custom Booking Page Styles - Luxury Spa Brown Theme */
.valvera-booking-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2b2b2b;
}

/* Header */
.valvera-header {
    text-align: center;
    margin-bottom: 50px;
}
.valvera-badge {
    display: inline-block;
    background: #f7f4f1;
    color: #5a4b41;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.valvera-title {
    font-size: 36px;
    font-weight: 300;
    margin: 0 0 15px;
    color: #1a1a1a;
}
.valvera-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Step Headings */
.valvera-step-section {
    margin-bottom: 60px;
}
.valvera-step-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}
.valvera-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #5a4b41;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 15px;
}
.valvera-step-heading h2 {
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    color: #1a1a1a;
}
.valvera-service-tag {
    margin-left: auto;
    background: #f7f4f1;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #5a4b41;
    font-weight: 500;
    border: 1px solid #e6ded8;
}

/* Services Grid */
.valvera-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.valvera-service-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.valvera-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #e6ded8;
}
.valvera-service-card.selected {
    border-color: #5a4b41;
    box-shadow: 0 0 0 2px rgba(90, 75, 65, 0.2);
}
.valvera-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.valvera-duration-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.valvera-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.valvera-card-title {
    font-size: 18px;
    margin: 0 0 8px;
    font-weight: 500;
}
.valvera-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}
.valvera-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
.valvera-card-price {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}
.valvera-select-btn {
    background: transparent;
    border: none;
    color: #5a4b41;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s;
}
.valvera-service-card:hover .valvera-select-btn {
    color: #45372f;
}
.valvera-service-card.selected .valvera-select-btn {
    color: #5a4b41;
}

/* Schedule Layout */
.valvera-schedule-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 50px;
    align-items: start;
}

.valvera-date-picker-box {
    position: relative;
}
.valvera-date-picker-box label,
.valvera-slots-box label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.valvera-luxury-date-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    user-select: none;
}
.valvera-luxury-date-trigger:hover {
    border-color: #5a4b41;
    box-shadow: 0 4px 12px rgba(90, 75, 65, 0.08);
}
.valvera-date-icon {
    color: #5a4b41;
}
.valvera-date-text {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
}
.valvera-caret-icon {
    color: #999;
}

/* --- Native Floating Popover Modal (Luxury Spa Brown) --- */
.valvera-calendar-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e6ded8;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    padding: 20px;
    z-index: 9999;
    box-sizing: border-box;
    animation: valveraFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes valveraFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.valvera-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.valvera-month-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.valvera-month-nav {
    background: transparent;
    border: 1px solid #eaeaea;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #444;
    transition: all 0.2s ease;
    line-height: 1;
}
.valvera-month-nav:hover {
    background: #f7f4f1;
    border-color: #e6ded8;
    color: #111;
}
.valvera-popover-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.valvera-popover-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.valvera-popover-empty {
    height: 36px;
}
.valvera-day-cell {
    height: 36px;
    width: 36px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.15s ease;
}
.valvera-day-cell:hover:not(:disabled) {
    background: #f7f4f1;
    color: #1a202c;
}
.valvera-day-cell.selected {
    background: #5a4b41 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(90, 75, 65, 0.3);
}
.valvera-day-cell:disabled {
    color: #cbd5e0 !important;
    text-decoration: line-through;
    cursor: not-allowed !important;
    background: transparent !important;
}

/* Quick Dates (Pills) */
.valvera-quick-dates-section {
    margin-top: 25px;
}
.valvera-quick-dates-title {
    display: block;
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.valvera-quick-dates-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.valvera-quick-date-btn {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
}
.valvera-quick-date-btn:hover {
    background: #f7f4f1;
    border-color: #e6ded8;
}
.valvera-quick-date-btn.active {
    background: #5a4b41;
    border-color: #5a4b41;
    color: #fff;
    font-weight: 500;
}

/* Time Slots Box & Header */
.valvera-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.valvera-slots-header label {
    margin-bottom: 0 !important;
}

/* Time Filter Pills */
.valvera-slot-filters {
    display: flex;
    gap: 6px;
}
.valvera-filter-btn {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}
.valvera-filter-btn:hover {
    background: #f7f4f1;
    border-color: #e6ded8;
    color: #333;
}
.valvera-filter-btn.active {
    background: #5a4b41;
    border-color: #5a4b41;
    color: #fff;
}

/* Compact Scrollable Slots Container */
.valvera-slots-container {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 6px;
}
.valvera-slots-container::-webkit-scrollbar {
    width: 5px;
}
.valvera-slots-container::-webkit-scrollbar-track {
    background: #f4f1ee;
    border-radius: 10px;
}
.valvera-slots-container::-webkit-scrollbar-thumb {
    background: #dcd4cc;
    border-radius: 10px;
}
.valvera-slots-container::-webkit-scrollbar-thumb:hover {
    background: #5a4b41;
}

/* Time Slots Grid */
.valvera-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.valvera-time-btn {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 14px 10px;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.valvera-time-btn:hover {
    border-color: #5a4b41;
    color: #5a4b41;
    background: #fcfcfc;
}
.valvera-time-btn.selected {
    background: #5a4b41;
    border-color: #5a4b41;
    color: white;
}
.valvera-time-start {
    font-weight: 600;
}
.valvera-time-end {
    font-size: 12px;
    opacity: 0.7;
}
.valvera-info-text, .valvera-no-slots {
    grid-column: 1 / -1;
    color: #666;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #ddd;
}
.valvera-loading-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Action Bar */
.valvera-action-bar {
    margin-top: 40px;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.valvera-summary-info {
    flex: 1;
}
.valvera-summary-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.valvera-summary-details {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
}
.valvera-submit-btn {
    background: #5a4b41;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-width: 180px;
}
.valvera-submit-btn:hover:not(:disabled) {
    background: #45372f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 75, 65, 0.2);
}
.valvera-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.valvera-btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.valvera-spin {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .valvera-schedule-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .valvera-action-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .valvera-submit-btn {
        width: 100%;
    }
}

/* Service Info Link Button & Title Row */
.valvera-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}
.valvera-title-row .valvera-card-title {
    margin-bottom: 0 !important;
}
.valvera-info-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f7f4f1;
    border: 1px solid #e6ded8;
    color: #5a4b41;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.valvera-info-link-btn:hover {
    background: #5a4b41;
    color: #ffffff;
    border-color: #5a4b41;
}

/* Service Info Modal */
.valvera-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.valvera-modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    animation: valveraPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes valveraPopIn {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.valvera-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 24px;
    color: #444;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.valvera-modal-close:hover {
    background: #ffffff;
    color: #000;
    transform: scale(1.08);
}
.valvera-modal-hero {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    box-sizing: border-box;
}
.valvera-modal-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}
.valvera-modal-hero .valvera-duration-pill {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: #5a4b41;
    font-weight: 600;
}
.valvera-modal-body {
    padding: 24px 28px 28px;
}
.valvera-modal-body h2 {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.valvera-modal-price {
    font-size: 18px;
    font-weight: 600;
    color: #5a4b41;
    margin-bottom: 20px;
}
.valvera-modal-section {
    background: #fdfbf9;
    border: 1px solid #f0ece9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.valvera-modal-section h4 {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}
.valvera-modal-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    white-space: pre-line;
}
.valvera-modal-footer-actions {
    text-align: right;
}
.valvera-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5a4b41;
    color: #ffffff;
    border: none;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.valvera-book-btn:hover {
    background: #45372f;
    box-shadow: 0 4px 15px rgba(90, 75, 65, 0.25);
}
