/**
 * IB Flavor Bookings
 * Frontend Styles
 * Version: 1.0.3
 * Author: CordialTec
 * Plugin URI: https://cordialtec.com.ng/plugins/ib-flavor-booking
 * 
 * This stylesheet handles all frontend styling for the room booking system
 * including archive pages, single room pages, booking forms, and responsive design.
 */

/* =============================================
   RESET & BASE STYLES
   ============================================= */
.ib-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   ROOMS ARCHIVE PAGE
   ============================================= */
.ib-rooms-archive {
    min-height: 400px;
}

.ib-archive-header {
    background: linear-gradient(135deg, #ffc800 0%, #ffc800 70%, #ffdc5c 100%);
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: none;
    padding: 0 20px;
    text-align: center;
}

.ib-archive-title {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
    color: #0b1a28;
    line-height: 1.1;
}

.ib-archive-description {
    font-size: 1rem;
    opacity: 0.85;
    margin: 5px 0 0 0;
    color: #0b1a28;
}

.ib-rooms-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    gap: 35px;
    padding: 20px 0 40px;
}

/* Room Card Base (Consolidated 1:1 Match) */
/* Room Card Base (Consolidated 1:1 Match with Prototype) */
.ib-room-card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -10px rgba(25, 45, 60, 0.25);
    overflow: hidden;
    border: 1px solid rgba(200, 218, 235, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    width: 100%;
    position: relative;
}

.ib-room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px -15px rgba(25, 45, 60, 0.35);
}

/* image wrapper */
.ib-flavor-archive-cards-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: transparent;
    display: flex;
}

.ib-flavor-archive-cards-image-wrapper a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1;
}

.ib-flavor-archive-cards-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important; /* Force no margin from theme */
    transition: transform 0.6s ease;
}

.ib-room-card:hover .ib-flavor-archive-cards-image-wrapper img {
    transform: scale(1.1);
}

/* redesigned pill badge */
.ib-flavor-archive-page-cards-available-badge {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 20, 30, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 215, 100, 0.35);
    box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.35);
    width: auto;
}

.badge-pulse {
    width: 12px;
    height: 12px;
    background: #3bcf6f;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(59, 207, 111, 0.6);
    animation: ib-pulse-green 1.8s infinite;
    flex-shrink: 0;
}

.badge-static-red {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes ib-pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 207, 111, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 207, 111, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 207, 111, 0);
    }
}

.badge-available {
    color: white;
    font-size: 1rem;
    font-weight: 520;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1;
}

.badge-room-count {
    background: #ffc900;
    color: #0b1a28;
    font-weight: 800;
    font-size: 1rem;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: inset 0 -1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 240, 0.5);
}

.ib-card-contents-wrapper {
    padding: 0 10px 10px 10px !important; /* Force exact padding */
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden; /* Prevent child overflow */
}

/* Fix for shortcode wpautop interference */
.ib-card-contents-wrapper > p,
.ib-card-contents-wrapper > br {
    display: none !important;
}

.ib-title-price-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 12px 0 !important;
    gap: 10px; /* Space between title and price */
}

.ib-room-title {
    flex: 1; /* Take available space */
    font-size: 1.5625rem; /* 25px */
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #152b3c !important;
    line-height: 1.2;
    margin: 0 !important;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.ib-flavor-archive-cards-image-wrapper {
    margin-bottom: 0 !important;
}

.ib-header-price {
    flex: 0 0 auto;
    text-align: right;
    color: #1a1a1a !important;
    background: #fff9e0;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1.1;
    border: 1px solid rgba(255, 201, 0, 0.25);
    box-sizing: border-box;
}

.ib-price-value {
    font-weight: 700; /* Bold */
    font-size: 1.5rem; /* 24px */
}

.ib-price-label {
    font-weight: 100; /* Thin */
    font-size: 0.9375rem; /* 15px */
    color: #4a4a4a !important;
}

.ib-stars-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.ib-stars-stars {
    color: #f8b24f;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.ib-stars-count {
    color: #3d607b;
    font-weight: 550;
    background: #eef4fa;
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    font-size: 0.9rem;
}

.ib-excerpt-container {
    margin: 10px 0 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #2b4a66;
    padding: 0;
    flex-grow: 1;
    min-height: 4.5em;
    overflow: hidden;
    box-sizing: border-box;
}

.ib-icon-bar {
    border-top: 2px solid #e7eef7;
    border-bottom: 2px solid #e7eef7;
    padding: 8px 0; /* Horizontal padding removed */
    margin: 20px 0 12px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.ib-icon-tip {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    color: #1c4b70;
    font-size: 1.7rem;
    transition: transform 0.1s;
    width: 28px;
    height: 28px;
}

.ib-icon-tip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ib-icon-tip:hover {
    transform: scale(1.05);
    color: #ffc900;
}

.ib-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2e40;
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 20;
    pointer-events: none;
}

.ib-icon-tip:hover .ib-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.ib-action-buttons {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.ib-action-buttons > a {
    display: flex;
    text-decoration: none;
}

.ib-btn-gold-outline {
    background: transparent;
    border: 2px solid #ffc900;
    color: #1e2f3f;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.ib-btn-gold-solid {
    background: #ffc900;
    border: none;
    color: #111111;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(230, 180, 0, 0.35);
    white-space: nowrap;
    transition: box-shadow 0.2s, background 0.2s;
}

.ib-btn-gold-outline:hover {
    background: #fff9e0;
}

.ib-btn-gold-solid:hover {
    background: #f0bd00;
    box-shadow: 0 10px 18px rgba(230, 180, 0, 0.45);
}

/* No rooms found */
.ib-no-rooms {
    text-align: center;
    padding: 80px 20px;
    background: #f7fafc;
    border-radius: 16px;
    margin: 40px 0;
}

.ib-no-rooms p {
    font-size: 1.3rem;
    color: #4a5568;
    margin: 0;
}

.ib-flavor-room-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    text-align: right;
}

.ib-flavor-room-card-btn {
    color: #ffd966;
    background: #1f3a5f;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.ib-flavor-room-card:hover .ib-flavor-room-card-btn {
    background: #ffd966;
    color: #1f3a5f;
}

@media (max-width: 768px) {
    .ib-flavor-rooms-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.ib-pagination {
    margin: 50px 0 60px;
    text-align: center;
}

.ib-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    margin: 0 5px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
}

.ib-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.ib-pagination .page-numbers:hover {
    background: #f7fafc;
    border-color: #007cba;
    color: #007cba;
}

/* =============================================
   SINGLE ROOM PAGE
   ============================================= */
.ib-room-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Gallery */
.ib-room-gallery {
    margin-bottom: 50px;
    background: #f7fafc;
    border-radius: 20px;
    padding: 20px;
}

.ib-gallery-main {
    width: 100%;
    height: 550px;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.ib-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.ib-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.ib-gallery-thumbnail {
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ib-gallery-thumbnail:hover {
    opacity: 0.9;
}

.ib-gallery-thumbnail.active {
    opacity: 1;
    border-color: #007cba;
    transform: scale(1.05);
}

.ib-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Room Header */
.ib-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #edf2f7;
    flex-wrap: wrap;
    gap: 20px;
}

.ib-room-title h1 {
    font-size: 2.8rem;
    margin: 0 0 10px 0;
    color: inherit;
    font-weight: 700;
    line-height: 1.2;
}

.ib-room-type {
    font-size: 1.2rem;
    color: inherit;
    opacity: 0.8;
    display: inline-block;
    background: #f7fafc;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
}

.ib-room-price {
    font-size: 2.5rem;
    color: #007cba;
    font-weight: 700;
    background: #ebf8ff;
    padding: 15px 30px;
    border-radius: 16px;
    display: inline-block;
}

.ib-room-price span {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: normal;
}

/* Availability Indicator */
.ib-availability {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 30px;
    background: #f7fafc;
    border: 2px solid transparent;
}

.ib-availability.available {
    background: #f0fff4;
    color: #22543d;
    border-color: #9ae6b4;
}

.ib-availability.unavailable {
    background: #fff5f5;
    color: #742a2a;
    border-color: #feb2b2;
}

.ib-availability-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.available .ib-availability-dot {
    background: #28a745;
    box-shadow: 0 0 10px #28a745;
}

.unavailable .ib-availability-dot {
    background: #dc3545;
    box-shadow: 0 0 10px #dc3545;
}

/* Contact Buttons */
.ib-contact-buttons {
    display: flex;
    gap: 20px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.ib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 180px;
}

.ib-btn-primary {
    background: #007cba;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.ib-btn-primary:hover {
    background: #005a87;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.4);
}

.ib-btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.ib-btn-whatsapp:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.ib-btn-phone {
    background: #34b7f1;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 183, 241, 0.3);
}

.ib-btn-phone:hover {
    background: #2196f3;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 183, 241, 0.4);
}

/* Amenities Sections */
.ib-amenities-section {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
}

.ib-amenities-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: inherit;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ib-amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ib-amenity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.ib-amenity-item:hover {
    background: #ffffff;
    border-color: #007cba;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ib-amenity-icon {
    font-size: 24px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.ib-amenity-name {
    font-size: 1rem;
    color: inherit;
    font-weight: 500;
    flex: 1;
}

/* Description Content */
.ib-description-content {
    line-height: 1.9;
    color: inherit;
    font-size: 1.1rem;
}

.ib-description-content p {
    margin-bottom: 20px;
}

/* Booking Form */
.ib-booking-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin: 50px 0;
    border: 1px solid #edf2f7;
}

.ib-booking-form h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: inherit;
    font-size: 2rem;
    font-weight: 600;
}

.ib-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.ib-form-group {
    margin-bottom: 25px;
}

.ib-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: inherit;
    font-size: 1rem;
}

.ib-form-group input,
.ib-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.ib-form-group input:focus,
.ib-form-group select:focus {
    outline: none;
    border-color: #007cba;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
}

.ib-form-group input:hover,
.ib-form-group select:hover {
    border-color: #cbd5e0;
}

/* Price Breakdown */
.ib-price-breakdown {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 25px;
    border-radius: 16px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
}

.ib-price-breakdown h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a202c;
    font-size: 1.3rem;
}

.ib-price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #cbd5e0;
    color: #4a5568;
}

.ib-price-row:last-child {
    border-bottom: none;
}

.ib-price-row.total {
    font-weight: 700;
    font-size: 1.3rem;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #cbd5e0;
    color: #007cba;
}

.ib-price-row.discount {
    color: #28a745;
}

#price-discount {
    font-weight: 600;
}

#discount-type {
    font-size: 0.9rem;
    color: #718096;
    font-weight: normal;
    margin-left: 5px;
}

.ib-deposit-note {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
}

/* Payment Methods */
.ib-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}

.ib-payment-method {
    position: relative;
}

.ib-payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ib-payment-method label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ib-payment-method input[type="radio"]:checked + label {
    border-color: #007cba;
    background: #ebf8ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 124, 186, 0.15);
}

.ib-payment-method label:hover {
    border-color: #007cba;
    background: #f0f9ff;
}

.ib-payment-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.ib-payment-method span:last-child {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

/* Messages */
.ib-message {
    padding: 18px 25px;
    border-radius: 12px;
    margin: 25px 0;
    display: none;
    font-weight: 500;
    border-left: 5px solid transparent;
}

.ib-message.success {
    background: #f0fff4;
    color: #22543d;
    border-left-color: #28a745;
    display: block;
}

.ib-message.error {
    background: #fff5f5;
    color: #742a2a;
    border-left-color: #dc3545;
    display: block;
}

/* Submit Button */
.ib-booking-form button[type="submit"] {
    width: 100%;
    justify-content: center;
    font-size: 1.2rem;
    padding: 18px 35px;
    margin-top: 20px;
}

.ib-booking-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .ib-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ib-gallery-main {
        height: 450px;
    }
}

@media (max-width: 768px) {
    /* Archive */
    .ib-archive-header {
        padding: 60px 0;
    }

    .ib-archive-title {
        font-size: 2.5rem;
    }

    .ib-archive-description {
        font-size: 1.1rem;
    }

    .ib-rooms-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Single Room */
    .ib-room-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ib-room-title h1 {
        font-size: 2.2rem;
    }

    .ib-room-price {
        font-size: 2rem;
        padding: 12px 25px;
    }

    .ib-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ib-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ib-gallery-main {
        height: 350px;
    }

    .ib-gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .ib-contact-buttons {
        flex-direction: column;
    }

    .ib-btn {
        width: 100%;
    }

    .ib-booking-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .ib-rooms-grid {
        gap: 20px;
        padding: 10px 0;
    }

    .ib-card-contents-wrapper {
        padding: 0 5px 10px 5px; /* Reduced to 5px on mobile */
    }

    .ib-flavor-archive-cards-image-wrapper {
        height: 220px;
    }

    .ib-title-price-wrapper .ib-room-title {
        font-size: 1.25rem !important; /* 20px */
    }

    .ib-header-price {
        padding: 0.3rem 0.6rem; /* Reduced padding on mobile */
        font-size: 1.125rem;
    }

    .ib-price-value {
        font-weight: 700;
        font-size: 1.125rem; /* 18px */
    }

    .ib-price-label {
        font-size: 0.875rem; /* 14px */
    }

    .ib-action-buttons {
        gap: 10px !important;
        justify-content: center;
        padding: 0 !important;
        margin-bottom: 5px;
    }

    .ib-btn-gold-outline,
    .ib-btn-gold-solid {
        padding: 0.6rem 0.8rem !important;
        font-size: 14px !important;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .ib-action-buttons > a {
        flex: 1;
    }

    .ib-btn-gold-outline img,
    .ib-btn-gold-solid img {
        width: 13px !important;
        height: 13px !important;
    }
}

/* Print Styles */
@media print {
    .ib-contact-buttons,
    .ib-booking-form,
    .ib-gallery-thumbnails {
        display: none;
    }

    .ib-room-header {
        break-after: avoid;
    }

    .ib-amenities-section {
        break-inside: avoid;
    }
}

/* Loading States */
.ib-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.ib-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: ib-spin 1s linear infinite;
}

@keyframes ib-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Tooltips */
.ib-tooltip {
    position: relative;
    display: inline-block;
}

.ib-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1a202c;
    color: white;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
}

.ib-tooltip:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a202c;
    margin-bottom: -4px;
    z-index: 1000;
}

/* Animations */
@keyframes ib-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ib-room-card {
    animation: ib-fadeIn 0.5s ease-out;
}

.ib-message {
    animation: ib-fadeIn 0.3s ease-out;
}

/* =============================================
   ARCHIVE CARDS BOOKING POPUP
   ============================================= */
.ib-flavor-archive-cards-popup-overall-parent {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999 !important;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ib-flavor-archive-cards-popup-overall-parent.active {
    display: flex !important;
}

.ib-flavor-archive-cards-popup-content {
    background: white;
    border-radius: 32px;
    width: 92%;
    max-width: 480px;
    height: 85vh;
    max-height: 750px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    animation: ib-archive-popup-slideup 0.3s ease-out;
}

@keyframes ib-archive-popup-slideup {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ib-flavor-archive-cards-popup-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.8rem;
    background: white;
    border-bottom: 3px solid #ffcc00;
    flex-shrink: 0;
}

.ib-flavor-archive-cards-popup-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 14px;
    border: 1px solid #eee;
}

.ib-flavor-archive-cards-popup-header-title h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1;
    letter-spacing: -0.02em;
}

.ib-flavor-archive-cards-popup-close-btn {
    background: #ffeeee;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.ib-flavor-archive-cards-popup-close-btn:hover {
    background: #ffdada;
    transform: rotate(90deg);
}

.ib-flavor-archive-cards-popup-close-btn img {
    width: 20px;
    height: 20px;
}

.ib-flavor-archive-cards-popup-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 1.8rem;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.ib-flavor-archive-cards-popup-booking-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ib-flavor-archive-cards-popup-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    transition: background 0.2s;
    border-radius: 12px;
}

.ib-flavor-archive-cards-popup-left-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ib-flavor-archive-cards-popup-icon-img {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ib-flavor-archive-cards-popup-icon-img img {
    width: 24px;
    height: 24px;
}

.ib-flavor-archive-cards-popup-field-label {
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 550;
}

.ib-flavor-archive-cards-popup-plus-button,
.ib-flavor-archive-cards-popup-plus-sign {
    background: #f1f5f9;
    color: #334155;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 300;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ib-flavor-archive-cards-popup-plus-button:hover,
.ib-flavor-archive-cards-popup-plus-sign:hover {
    background: #e2e8f0;
    color: #000;
}

.ib-flavor-archive-cards-popup-hr {
    border: 0;
    border-top: 1.5px solid #f1f5f9;
    margin: 4px 0;
}

.ib-flavor-archive-cards-popup-selected-room-name {
    font-weight: 700;
    color: #ff9900;
    font-size: 1.1rem;
}

/* Guests Component */
.ib-flavor-archive-cards-popup-guests-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    cursor: pointer;
    border-radius: 12px;
}

.ib-flavor-archive-cards-popup-guests-trigger:hover {
    background: #f8fafc;
}

.ib-flavor-archive-cards-popup-curved-btn {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 30px;
    padding: 0 0 0 18px;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.ib-flavor-archive-cards-popup-guests-display {
    font-size: 0.95rem;
    color: #475569;
    margin-right: 12px;
}

.ib-flavor-archive-cards-popup-guests-form {
    display: none;
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 8px 0;
    border: 1.5px solid #e2e8f0;
}

.ib-flavor-archive-cards-popup-guests-form.active {
    display: block;
}

.ib-flavor-archive-cards-popup-form-field {
    margin-bottom: 16px;
}

.ib-flavor-archive-cards-popup-form-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.ib-flavor-archive-cards-popup-form-field input,
.ib-flavor-archive-cards-popup-form-field select,
.ib-flavor-archive-cards-popup-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.ib-flavor-archive-cards-popup-form-field input:focus {
    border-color: #ffcc00;
    outline: none;
}

.ib-flavor-archive-cards-popup-save-guests-btn {
    width: 100%;
    background: #ffcc00;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.1s;
}

.ib-flavor-archive-cards-popup-save-guests-btn:active {
    transform: scale(0.98);
}

/* Summary */
.ib-flavor-archive-cards-popup-summary {
    background: #fffdf2;
    border-radius: 24px;
    padding: 1.6rem;
    margin-top: 1.8rem;
    border: 2px solid #fff5c2;
}

.ib-flavor-archive-cards-popup-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.ib-flavor-archive-cards-popup-summary-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.ib-flavor-archive-cards-popup-summary-buttons {
    display: flex;
    gap: 12px;
}

.ib-flavor-archive-cards-popup-clear-btn {
    background: #ffe4e4;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ib-flavor-archive-cards-popup-booknow-btn {
    background: #ffcc00;
    border: none;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    font-size: 0.95rem;
}

.ib-flavor-archive-cards-popup-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #475569;
}

.ib-flavor-archive-cards-popup-summary-row .value {
    font-weight: 600;
    color: #1e293b;
}

.ib-flavor-archive-cards-popup-summary-row.total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px dashed #cbd5e1;
    font-weight: 800;
    font-size: 1.3rem;
    color: #0f172a;
}

.ib-flavor-archive-cards-popup-summary-row.total .value {
    color: #0f172a;
}

/* Anchored Calendar Positioning */
.ib-flavor-archive-cards-popup-anchored-calendar {
    position: absolute !important;
    z-index: 12000;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Scroll behavior for popups */
body.ib-popup-active {
    overflow: hidden;
}

@media (max-width: 600px) {
    .ib-flavor-archive-cards-popup-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .ib-flavor-archive-cards-popup-header-title {
        padding: 1.2rem;
    }
}

/* Calendar Widget Styles (Archive Popup) */
.ib-flavor-archive-cards-popup-calendar-widget {
    background: white;
    padding: 15px;
    user-select: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ib-flavor-archive-cards-popup-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1e293b;
}

.ib-flavor-archive-cards-popup-calendar-header .prev,
.ib-flavor-archive-cards-popup-calendar-header .next {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.ib-flavor-archive-cards-popup-calendar-header .prev:hover,
.ib-flavor-archive-cards-popup-calendar-header .next:hover {
    background: #f1f5f9;
}

.ib-flavor-archive-cards-popup-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.ib-flavor-archive-cards-popup-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.ib-flavor-archive-cards-popup-calendar-days .day,
.ib-flavor-archive-cards-popup-calendar-days .empty {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.ib-flavor-archive-cards-popup-calendar-days .day {
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
    color: #334155;
}

.ib-flavor-archive-cards-popup-calendar-days .day:hover {
    background: #f1f5f9;
    color: #000;
}

.ib-flavor-archive-cards-popup-calendar-days .day.today {
    color: #ffcc00;
    font-weight: 700;
    background: #fffdf2;
}

.ib-flavor-archive-cards-popup-calendar-days .day.selected {
    background: #ffcc00;
    color: black;
    font-weight: 700;
}
