/* Higanas Boats Booking Plugin - Public Styles v2.3.2 - Compact Design */

/* Global Overrides for Compact Design */
.hbb-container * {
    line-height: 1.4 !important;
}

/* Search Section */
.hbb-search-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hbb-search-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-style: italic;
}

.hbb-date-selector {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 12px;
}

.hbb-date-input-wrapper {
    position: relative;
}

.hbb-date-input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.hbb-date-input-wrapper input::placeholder {
    color: #999;
}

.hbb-search-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    height: 47px;
}

.hbb-min-stay-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.hbb-info-icon {
    width: 18px;
    height: 18px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Calendar - 2-night minimum enforced */
.hbb-calendar-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 1000;
    min-width: 700px;
}

.hbb-calendar-popup.active {
    display: block;
}

.hbb-calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hbb-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hbb-month-name {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.hbb-month-nav {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 4px 8px;
}

.hbb-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.hbb-weekday {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
}

.hbb-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.hbb-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

.hbb-day:hover:not(.disabled) {
    background: #f3f4f6;
}

.hbb-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.hbb-day.start {
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
}

.hbb-day.end {
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
}

.hbb-day.in-range {
    background: #d1d5db;
    color: #1a1a1a;
}

.hbb-day.today {
    border: 2px solid #1a1a1a;
}

/* Boat Cards - Compact Design */
.hbb-boats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.hbb-boat-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hbb-boat-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
}

.hbb-boat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbb-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}

.hbb-discount-badge::before {
    content: '🔥';
    margin-right: 4px;
}

.hbb-image-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hbb-boat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.hbb-boat-nav.prev { left: 12px; }
.hbb-boat-nav.next { right: 12px; }

.hbb-boat-details {
    padding: 18px;
}

.hbb-boat-name {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.hbb-boat-model {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
}

.hbb-boat-description {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5 !important;
    margin-bottom: 14px;
}

.hbb-boat-specs {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    color: #333;
    font-size: 14px;
}

.hbb-cabin-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>') center/contain no-repeat;
}

.hbb-equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.hbb-equipment-item {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
}

.hbb-boat-pricing {
    border-top: 1px solid #eee;
    padding-top: 14px;
}

.hbb-original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.hbb-current-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.hbb-price-period {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.hbb-nights-count {
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
}

.hbb-book-btn {
    width: 100%;
    background: #22c55e;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
}

/* Lightbox for full-size images */
.hbb-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.hbb-lightbox.active {
    display: flex;
}

.hbb-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.hbb-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.hbb-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
}

.hbb-lightbox-nav.prev { left: -80px; }
.hbb-lightbox-nav.next { right: -80px; }

.hbb-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.hbb-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* Booking Modal */
.hbb-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.hbb-modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hbb-modal {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    margin: 20px auto;
}

.hbb-modal-header {
    background: #1e3a5f;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
}

.hbb-modal-title {
    font-size: 18px;
    font-weight: 600;
}

.hbb-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.hbb-boat-preview {
    position: relative;
    height: 240px;
    cursor: pointer;
}

.hbb-section-title {
    background: #f8f9fa;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #333;
}

.hbb-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.hbb-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.hbb-detail-label {
    font-size: 14px;
    color: #666;
}

.hbb-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.hbb-equipment-grid {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.hbb-equipment-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hbb-equipment-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.hbb-equipment-check::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
}

.hbb-mandatory-extras,
.hbb-deposit-section,
.hbb-cost-breakdown {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.hbb-extra-item {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.hbb-extra-name {
    font-size: 14px;
    font-weight: 600;
}

.hbb-extra-desc {
    font-size: 12px;
    color: #666;
}

.hbb-extra-price {
    font-size: 16px;
    font-weight: 700;
}

.hbb-cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.hbb-total-online {
    border-top: 2px solid #333;
    padding-top: 12px;
    margin-top: 8px;
}

.hbb-total-online .hbb-cost-label {
    font-size: 16px;
    font-weight: 700;
}

.hbb-total-online .hbb-cost-value {
    font-size: 20px;
    font-weight: 700;
}

.hbb-base-extras {
    background: #fef3c7;
    padding: 10px;
    border-radius: 6px;
    margin-top: 12px;
}

.hbb-base-extras-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #92400e;
    padding: 3px 0;
}

.hbb-payment-info {
    background: #e0f2fe;
    padding: 14px;
    border-radius: 6px;
    margin-top: 12px;
}

.hbb-deposit-highlight {
    font-size: 22px;
    font-weight: 700;
    color: #0284c7;
    margin-top: 8px;
}

.hbb-form-section {
    padding: 20px;
}

.hbb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.hbb-form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.hbb-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.hbb-checkbox-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.hbb-checkbox-group label {
    font-size: 13px;
}

.hbb-modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.hbb-cancel-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.hbb-checkout-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hbb-date-selector {
        grid-template-columns: 1fr;
    }
    
    .hbb-calendar-popup {
        min-width: 100%;
    }
    
    .hbb-calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .hbb-boats-grid {
        grid-template-columns: 1fr;
    }
    
    .hbb-details-grid,
    .hbb-equipment-columns,
    .hbb-form-grid {
        grid-template-columns: 1fr;
    }
    
    .hbb-lightbox-nav.prev { left: 10px; }
    .hbb-lightbox-nav.next { right: 10px; }
}

@media (max-width: 480px) {
    .hbb-search-section {
        padding: 20px 15px;
    }
    
    .hbb-boat-image-container {
        height: 220px;
    }
    
    .hbb-modal {
        margin: 0;
        border-radius: 0;
    }
}
