/* ============================================
   Avada product layout tweaks
   ============================================ */

/* Compact spacing */
.single-product .fusion-woo-price-tb {
    margin-bottom: 8px !important;
}

.single-product .fusion-separator {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* ============================================
   Grand Selskapslokaler – Product Page
   ============================================ */

.grand-page {
    max-width: 900px;
    margin: 0 auto;
}

.grand-section {
    margin-bottom: 48px;
}

.grand-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.3;
}

.grand-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 12px;
}

.grand-section p:last-child {
    margin-bottom: 0;
}

.grand-section em {
    color: #555;
    font-size: 1.05rem;
}

.grand-section a {
    color: #d97706;
    text-decoration: underline;
}

.grand-section a:hover {
    color: #b45309;
}

/* Gallery grids */
.grand-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.grand-gallery__img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Lists */
.grand-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.grand-list li {
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.grand-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #d97706;
    border-radius: 50%;
}

/* History section */
.grand-section--history {
    border-left: 3px solid #d97706;
    padding-left: 24px;
}

/* CTA section */
.grand-section--cta {
    background: #faf7f2;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.grand-section--cta h2 {
    color: #d97706;
}

/* ============================================
   Booking Calendar – Upgraded
   ============================================ */

.fersk-booking {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fersk-booking__subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: #222;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.fersk-booking__calendar-wrap {
    margin-bottom: 16px;
}

.fersk-booking__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.fersk-booking__controls button {
    background: none;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s ease;
}

.fersk-booking__controls button:hover {
    border-color: #d97706;
    color: #d97706;
    background: #fffbf5;
}

.fersk-booking__controls strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #222;
}

.fersk-booking__calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.fersk-booking__weekday-head {
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fersk-booking__day {
    padding: 10px 4px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    min-height: 2.5em;
    transition: all 0.15s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fersk-booking__day:hover:not(.is-disabled):not(.is-booked):not(.is-unavailable):not(.is-weekday-locked) {
    background: #fffbf5;
    border-color: #f0d9b5;
}

.fersk-booking__day-num {
    display: block;
    line-height: 1;
}

.fersk-booking__day.is-weekend {
    background: #faf7f2;
    color: #222;
    font-weight: 500;
}

.fersk-booking__day.is-selected {
    border-color: #d97706;
    background: #fef3e2;
    color: #92400e;
    font-weight: 600;
}

/* Booked and unavailable */
.fersk-booking__day.is-booked,
.fersk-booking__day.is-unavailable {
    background: #fde8e8;
    color: #991b1b;
    cursor: not-allowed;
}

.fersk-booking__day.is-weekday-locked.is-booked,
.fersk-booking__day.is-weekday-locked.is-unavailable {
    background: #fde8e8;
    color: #991b1b;
}

.fersk-booking__day.is-weekday-locked {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

.fersk-booking__day.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fersk-booking__day.is-other-month {
    opacity: 0.3;
    color: #bbb;
}

.fersk-booking__select {
    margin-bottom: 12px;
}

.fersk-booking__info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 12px;
    padding: 10px 14px;
    background: #faf7f2;
    border-radius: 8px;
    border-left: 3px solid #d97706;
}

/* ============================================
   Add-ons Section – Upgraded
   ============================================ */

.fersk-booking-addons {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
}

.fersk-booking-addons__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #222;
}

.fersk-booking-addons__item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.fersk-booking-addons__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.fersk-booking-addons__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #222;
}

.fersk-booking-addons__checkbox input {
    width: auto;
    margin-top: 3px;
    accent-color: #d97706;
}

.fersk-booking-addons__desc {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
    line-height: 1.5;
}

.fersk-booking-addons__price {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d97706;
    margin-top: 2px;
}

.fersk-booking-addons__extra {
    margin: 8px 0 0 28px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    max-width: 280px;
}

.fersk-booking-addons__extra label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #333;
}

.fersk-booking-addons__extra label + label {
    margin-top: 8px;
}

.fersk-booking-addons__extra input[type="number"] {
    width: 70px;
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 0.85rem;
}

.fersk-booking-addons__extra input[type="number"]:focus {
    border-color: #d97706;
    outline: none;
    box-shadow: 0 0 0 2px rgba(217,119,6,0.15);
}

.fersk-booking-addons__item > label:first-of-type {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #222;
}

.fersk-booking-addons__select {
    min-width: 100px;
    max-width: 200px;
    padding: 6px 10px;
    margin-bottom: 0;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
}

.fersk-booking-addons__select:focus {
    border-color: #d97706;
    outline: none;
    box-shadow: 0 0 0 2px rgba(217,119,6,0.15);
}

.fersk-booking-addons__extra--servitor label {
    display: block;
    margin-top: 8px;
}

.fersk-booking-addons__extra--servitor .fersk-booking-addons__select {
    margin-left: 0;
    margin-top: 4px;
}

/* ============================================
   Responsive
   ============================================ */

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

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

    .grand-gallery__img {
        height: 220px;
    }

    /* Inline-style grid galleries responsive override */
    .grand-section--images div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .grand-section--images img {
        height: 220px !important;
    }

    .grand-list {
        grid-template-columns: 1fr;
    }

    .grand-section--history {
        padding-left: 16px;
    }

    .grand-section--cta {
        padding: 24px 16px;
    }

    .grand-section h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 640px) {
    .fersk-booking {
        padding: 14px;
        margin: 14px 0;
        border-radius: 8px;
    }

    .fersk-booking__calendar {
        gap: 3px;
    }

    .fersk-booking__weekday-head {
        padding: 3px 0;
        font-size: 0.7rem;
    }

    .fersk-booking__day {
        padding: 8px 2px;
        min-height: 2.3em;
        font-size: 0.85rem;
        border-radius: 6px;
        border-width: 1.5px;
    }

    .fersk-booking__controls {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .fersk-booking__controls strong {
        width: 100%;
        text-align: center;
        order: -1;
    }

    .fersk-booking-addons {
        padding: 14px;
        margin: 16px 0;
    }

    .fersk-booking-addons__select {
        min-width: 0;
        width: 100%;
        max-width: 200px;
        box-sizing: border-box;
    }

    .fersk-booking-addons__extra input[type="number"] {
        width: 100%;
        max-width: 100px;
        box-sizing: border-box;
    }

    .fersk-booking-addons__extra {
        margin-left: 0;
    }
}

@media (max-width: 380px) {
    .fersk-booking__day {
        padding: 8px 2px;
        min-height: 2.5em;
    }

    .fersk-booking__weekday-head {
        font-size: 0.65rem;
    }

    .grand-section {
        margin-bottom: 32px;
    }
}
