/**
 * COMPLETE FIXED Enhanced HostAway Styles - Professional Layout
 * File: assets/css/haway-enhanced.css
 * All layouts fixed, responsive design improved, PriceLabs integration enhanced
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --hk-primary: #002349;
    --hk-secondary: #E74C3C;
    --hk-text: #2D3748;
    --hk-text-light: #718096;
    --hk-border: #E2E8F0;
    --hk-bg: #F7FAFC;
    --hk-white: #FFFFFF;
    --hk-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --hk-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --hk-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --hk-radius: 12px;
    --hk-radius-sm: 8px;
    --hk-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hk-green: #10B981;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--hk-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* =====================================
   ENHANCED GALLERY - FIXED
   ===================================== */
.hk-listing-gallery-wrapper {
    margin-bottom: 40px;
    width: 100%;
    overflow: hidden;
}

.hk-gallery-main {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hk-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    height: 450px;
    width: 100%;
}

.hk-gallery-large {
    position: relative;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    width: 100%;
    height: 100%;
}

.hk-gallery-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.hk-gallery-large:hover img {
    transform: scale(1.05);
}

.hk-gallery-small {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    height: 100%;
}

.hk-gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hk-gallery-item:first-child {
    border-radius: 0 12px 0 0;
}

.hk-gallery-item:last-child {
    border-radius: 0 0 12px 0;
}

.hk-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.hk-gallery-item:hover img {
    transform: scale(1.05);
}

.hk-view-all-photos {
    position: absolute;
    bottom: 20px;
    right: 40px;
    background: var(--hk-white);
    border: 1px solid var(--hk-border);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--hk-transition);
    box-shadow: var(--hk-shadow);
    z-index: 10;
}

.hk-view-all-photos:hover {
    transform: translateY(-2px);
    box-shadow: var(--hk-shadow-lg);
}

/* =====================================
   LISTING CONTAINER - FIXED LAYOUT
   ===================================== */
.hk-listing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
}

.hk-listing-main {
    width: 100%;
    min-width: 0;
}

/* =====================================
   LISTING HEADER - FIXED
   ===================================== */
.hk-listing-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hk-border);
}

.hk-listing-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--hk-primary);
    margin: 0 0 16px;
    line-height: 1.3;
}

.hk-listing-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hk-meta-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--hk-text-light);
    font-weight: 500;
}

.hk-meta-location svg {
    flex-shrink: 0;
}

.hk-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
    color: var(--hk-text);
    font-weight: 500;
}

.hk-meta-details span {
    position: relative;
    padding-right: 20px;
}

.hk-meta-details span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: 8px;
    color: var(--hk-text-light);
}

.hk-meta-details span:last-child {
    padding-right: 0;
}

/* =====================================
   SECTIONS
   ===================================== */
.hk-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hk-border);
    width: 100%;
}

.hk-section:last-child {
    border-bottom: none;
}

.hk-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--hk-primary);
    margin: 0 0 20px;
}

.hk-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--hk-text);
    margin: 0;
}

/* =====================================
   AMENITIES - FIXED GRID
   ===================================== */
.hk-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.hk-amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--hk-text);
}

.hk-amenity-item svg {
    flex-shrink: 0;
    color: var(--hk-green);
}

.hk-show-all-amenities {
    margin-top: 20px;
    background: var(--hk-white);
    border: 2px solid var(--hk-primary);
    color: var(--hk-primary);
    padding: 12px 32px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hk-transition);
}

.hk-show-all-amenities:hover {
    background: var(--hk-primary);
    color: var(--hk-white);
}

/* =====================================
   HOUSE RULES - FIXED LAYOUT
   ===================================== */
.hk-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hk-rule-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hk-rule-item strong {
    font-size: 13px;
    color: var(--hk-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hk-rule-item span {
    font-size: 16px;
    color: var(--hk-text);
    font-weight: 500;
}

/* =====================================
   CANCELLATION POLICY
   ===================================== */
.hk-cancellation-notice {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #FFF5F5;
    border-radius: 8px;
    border-left: 4px solid var(--hk-secondary);
}

.hk-cancellation-notice svg {
    flex-shrink: 0;
    color: var(--hk-secondary);
}

.hk-cancellation-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hk-text);
    flex: 1;
}

/* =====================================
   STICKY BOOKING CARD - FIXED
   ===================================== */
.hk-booking-sidebar {
    position: relative;
    width: 100%;
}

.hk-booking-card {
    position: sticky;
    top: 100px;
    background: var(--hk-white);
    border: 1px solid var(--hk-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--hk-shadow-lg);
    width: 100%;
}

.hk-price-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hk-border);
}

.hk-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hk-price-amount {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--hk-primary);
}

.hk-price-period {
    font-size: 16px;
    color: var(--hk-text-light);
    font-weight: 500;
}

/* =====================================
   DATE/GUEST SELECTION - FIXED
   ===================================== */
.hk-booking-dates {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    margin-bottom: 12px;
    border: 1px solid var(--hk-border);
    border-radius: 8px;
    overflow: hidden;
}

.hk-date-group {
    padding: 14px 16px;
    background: var(--hk-white);
}

.hk-date-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hk-text);
    margin-bottom: 6px;
}

.hk-date-input {
    width: 100%;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--hk-primary);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: transparent;
}

.hk-date-input:focus {
    outline: none;
}

.hk-date-input::placeholder {
    color: var(--hk-text-light);
    font-weight: 400;
}

.hk-date-separator {
    width: 1px;
    background: var(--hk-border);
    align-self: stretch;
}

.hk-guest-selector {
    padding: 14px 16px;
    border: 1px solid var(--hk-border);
    border-radius: 8px;
    margin-bottom: 16px;
}

.hk-guest-input {
    width: 100%;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--hk-primary);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    background: transparent;
}

.hk-guest-input:focus {
    outline: none;
}

/* =====================================
   PRICE BREAKDOWN - FIXED
   ===================================== */
.hk-price-breakdown {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--hk-border);
    border-bottom: 1px solid var(--hk-border);
}

.hk-price-breakdown > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--hk-text);
}

.hk-price-breakdown > div:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--hk-border);
    font-weight: 700;
    font-size: 18px;
    color: var(--hk-primary);
}

/* =====================================
   RESERVE BUTTON
   ===================================== */
.hk-reserve-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--hk-primary) 0%, #1a252f 100%);
    color: var(--hk-white);
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hk-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hk-reserve-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

.hk-reserve-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hk-no-charge-text {
    text-align: center;
    font-size: 13px;
    color: var(--hk-text-light);
    margin: 0;
}

/* =====================================
   AVAILABILITY CALENDAR - FIXED
   ===================================== */
.hk-calendar-section {
    background: var(--hk-bg);
    padding: 60px 0;
    margin-top: 60px;
    width: 100%;
}

.hk-calendar-section .hk-listing-container {
    grid-template-columns: 1fr;
    max-width: 1100px;
}

.hk-calendar-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--hk-text-light);
    margin: 0 0 40px;
}

#hk-availability-calendar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.hk-cal-month {
    display: none;
    background: var(--hk-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--hk-shadow);
}

.hk-cal-month.hk-cal-active {
    display: block;
}

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

.hk-cal-month-name {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--hk-primary);
}

.hk-cal-prev,
.hk-cal-next {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--hk-primary);
    cursor: pointer;
    padding: 4px 12px;
    transition: var(--hk-transition);
}

.hk-cal-prev:hover,
.hk-cal-next:hover {
    background: var(--hk-bg);
    border-radius: 4px;
}

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

.hk-cal-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--hk-text-light);
    text-transform: uppercase;
    padding: 8px 0;
}

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

/* =====================================
   CALENDAR DAYS - ENHANCED PRICELABS STYLING
   ===================================== */
.hk-cal-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
    transition: var(--hk-transition);
    cursor: default;
    min-height: 70px;
    padding: 8px 4px;
    border: 1px solid transparent;
    background: var(--hk-white);
}

.hk-cal-day-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
}

.hk-day-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--hk-text);
    line-height: 1;
}

.hk-day-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--hk-primary);
    line-height: 1;
}

.hk-cal-day.hk-available {
    cursor: pointer;
}

.hk-cal-day.hk-available:hover {
    background: #E6F2FF;
    border-color: var(--hk-primary);
}

.hk-cal-day.hk-unavailable {
    opacity: 0.3;
    background: #f9fafb;
}

.hk-cal-day.hk-unavailable .hk-day-number {
    text-decoration: line-through;
}

.hk-cal-day.hk-selected {
    background: var(--hk-primary) !important;
    border-color: var(--hk-primary);
}

.hk-cal-day.hk-selected .hk-day-number,
.hk-cal-day.hk-selected .hk-day-price {
    color: var(--hk-white) !important;
}

.hk-cal-day.hk-in-range {
    background: rgba(0, 35, 73, 0.1) !important;
}

.hk-cal-day.hk-empty {
    pointer-events: none;
    background: transparent;
}

/* =====================================
   PRICELABS MINIMUM NIGHTS BADGES - ENHANCED
   ===================================== */
.hk-min-nights-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 5px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Color coding by minimum nights */
.hk-min-nights-1 {
    background: linear-gradient(135deg, #10B981, #059669);
}

.hk-min-nights-2 {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.hk-min-nights-3,
.hk-min-nights-4 {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.hk-min-nights-5,
.hk-min-nights-6,
.hk-min-nights-7 {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

/* Hover effect */
.hk-cal-day.hk-available:hover .hk-min-nights-badge {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* When date is selected, invert colors */
.hk-cal-day.hk-selected .hk-min-nights-badge {
    background: var(--hk-white) !important;
    color: var(--hk-primary) !important;
    font-weight: 800;
}

/* =====================================
   BOOKING MESSAGES - ENHANCED
   ===================================== */
#hk-booking-messages {
    margin-bottom: 16px;
}

#hk-booking-messages .hk-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: start;
    gap: 8px;
}

#hk-booking-messages .hk-alert-error {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

#hk-booking-messages .hk-alert-success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    border-left: 4px solid #10B981;
}

#hk-booking-messages .hk-alert-info {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* =====================================
   CHECKOUT PAGE - FIXED LAYOUT
   ===================================== */
.hk-checkout-page {
    background: var(--hk-bg);
    min-height: 100vh;
    padding: 40px 0;
}

.hk-checkout-progress {
    background: var(--hk-white);
    padding: 32px 0;
    margin-bottom: 40px;
    box-shadow: var(--hk-shadow-sm);
}

.hk-progress-bar {
    max-width: 600px;
    margin: 0 auto 24px;
    height: 4px;
    background: var(--hk-border);
    border-radius: 2px;
    overflow: hidden;
}

.hk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hk-primary), var(--hk-green));
    transition: width 0.5s ease;
}

.hk-progress-steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.hk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.hk-step.hk-active {
    opacity: 1;
}

.hk-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hk-border);
    color: var(--hk-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.hk-step.hk-active .hk-step-number {
    background: var(--hk-primary);
    color: var(--hk-white);
}

.hk-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hk-text);
}

/* =====================================
   CHECKOUT CONTAINER - FIXED
   ===================================== */
.hk-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

.hk-checkout-main {
    background: var(--hk-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--hk-shadow);
}

.hk-back-link {
    margin-bottom: 24px;
}

.hk-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hk-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--hk-transition);
}

.hk-back-link a:hover {
    color: var(--hk-primary);
}

.hk-checkout-title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--hk-primary);
    margin: 0 0 32px;
}

.hk-checkout-section {
    margin-bottom: 40px;
}

.hk-checkout-section h2 {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--hk-primary);
    margin: 0 0 24px;
}

.hk-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--hk-primary);
    color: var(--hk-white);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.hk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hk-form-group {
    margin-bottom: 20px;
}

.hk-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--hk-text);
    margin-bottom: 8px;
}

.hk-input,
.hk-input select,
.hk-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--hk-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--hk-text);
    transition: var(--hk-transition);
    background: var(--hk-white);
}

.hk-input:focus {
    outline: none;
    border-color: var(--hk-primary);
    box-shadow: 0 0 0 3px rgba(0, 35, 73, 0.1);
}

.hk-input textarea {
    resize: vertical;
    min-height: 80px;
}

.hk-stripe-element {
    padding: 12px 16px;
    border: 1px solid var(--hk-border);
    border-radius: 8px;
    transition: var(--hk-transition);
    background: var(--hk-white);
}

.hk-stripe-element:focus-within {
    border-color: var(--hk-primary);
    box-shadow: 0 0 0 3px rgba(0, 35, 73, 0.1);
}

.hk-error-message {
    color: var(--hk-secondary);
    font-size: 13px;
    margin-top: 8px;
}

/* =====================================
   PAYMENT SECTION - FIXED
   ===================================== */
.hk-payment-methods {
    margin-bottom: 24px;
}

.hk-payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--hk-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--hk-transition);
}

.hk-payment-method.hk-active {
    border-color: var(--hk-primary);
    background: #F0FAFF;
}

.hk-payment-icon {
    flex-shrink: 0;
}

.hk-card-elements {
    margin-top: 20px;
}

.hk-offline-payment {
    margin-top: 20px;
}

.hk-terms-box {
    padding: 20px;
    background: var(--hk-bg);
    border-radius: 8px;
}

.hk-checkbox-label {
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 14px;
    color: var(--hk-text);
    cursor: pointer;
}

.hk-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.hk-checkbox-label a {
    color: var(--hk-primary);
    text-decoration: underline;
}

.hk-checkbox-label a:hover {
    text-decoration: none;
}

/* =====================================
   SUBMIT BUTTON
   ===================================== */
.hk-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--hk-green) 0%, #059669 100%);
    color: var(--hk-white);
    border: none;
    padding: 18px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hk-transition);
    margin-top: 24px;
}

.hk-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.hk-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hk-btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

/* =====================================
   CHECKOUT SIDEBAR - FIXED
   ===================================== */
.hk-checkout-sidebar {
    position: relative;
}

.hk-checkout-sidebar .hk-summary-card {
    position: sticky;
    top: 100px;
    background: var(--hk-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--hk-shadow);
    border: 1px solid var(--hk-border);
}

.hk-summary-property {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hk-border);
}

.hk-property-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.hk-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hk-property-info {
    flex: 1;
    min-width: 0;
}

.hk-property-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--hk-primary);
    line-height: 1.3;
}

.hk-property-info p {
    font-size: 14px;
    color: var(--hk-text-light);
    margin: 0;
}

.hk-summary-details {
    margin-bottom: 24px;
}

.hk-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.hk-summary-label {
    color: var(--hk-text-light);
}

.hk-summary-value {
    color: var(--hk-text);
    font-weight: 600;
}

.hk-price-breakdown h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--hk-primary);
}

.hk-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--hk-text);
}

.hk-price-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid var(--hk-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--hk-primary);
}

/* =====================================
   ALERTS & INFO BOXES
   ===================================== */
.hk-alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.hk-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.hk-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.hk-info-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #EFF6FF;
    border-radius: 8px;
    border-left: 4px solid var(--hk-primary);
}

.hk-info-box svg {
    flex-shrink: 0;
    color: var(--hk-primary);
}

.hk-info-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hk-primary);
    font-weight: 600;
}

.hk-info-box p {
    margin: 0;
    font-size: 14px;
    color: var(--hk-text);
    line-height: 1.5;
}

/* =====================================
   SPINNER ANIMATION
   ===================================== */
.hk-spinner circle {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35;
    animation: spinner-dash 1.5s ease-in-out infinite;
}

@keyframes spinner-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}/* =====================================
   CRITICAL FIX: REPLACE THE EXISTING MOBILE STYLES (lines 1160-1330)
   Copy this entire section and REPLACE everything from line 1160 onwards
   ===================================== */

/* =====================================
   RESPONSIVE DESIGN - TABLET (1024px)
   ===================================== */
@media (max-width: 1024px) {
    .hk-listing-container,
    .hk-checkout-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .hk-booking-card,
    .hk-summary-card {
        position: static !important;
        max-width: 600px;
        margin: 0 auto;
    }

    .hk-gallery-grid {
        height: 400px;
    }

    /* CRITICAL: Calendar single column on tablets */
    #hk-availability-calendar {
        grid-template-columns: 1fr !important;
        max-width: 600px;
        margin: 0 auto;
    }

    .hk-amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   RESPONSIVE DESIGN - MOBILE (768px)
   ===================================== */
@media (max-width: 768px) {
    .hk-listing-container,
    .hk-checkout-container {
        padding: 0 16px 40px;
        grid-template-columns: 1fr !important;
    }

    .hk-gallery-main {
        padding: 0 16px;
    }

    .hk-gallery-grid {
        grid-template-columns: 1fr !important;
        height: auto;
        gap: 8px;
    }
    
    .hk-gallery-large {
        height: 280px;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .hk-gallery-small {
        grid-template-rows: auto;
        grid-template-columns: repeat(2, 1fr) !important;
        height: auto;
    }
    
    .hk-gallery-item {
        height: 140px;
    }

    .hk-gallery-item:first-child {
        border-radius: 0 !important;
    }
    
    .hk-gallery-item:last-child {
        border-radius: 0 0 12px 12px !important;
    }

    .hk-view-all-photos {
        bottom: 10px;
        right: 26px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .hk-listing-title {
        font-size: 24px;
    }

    .hk-section-title {
        font-size: 20px;
    }

    .hk-meta-details {
        gap: 12px;
    }

    .hk-rules-grid,
    .hk-amenities-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .hk-form-row {
        grid-template-columns: 1fr !important;
    }
    
    .hk-checkout-main {
        padding: 24px 20px;
    }

    .hk-checkout-title {
        font-size: 24px;
    }

    .hk-progress-steps {
        padding: 0 16px;
    }

    .hk-step-label {
        font-size: 11px;
    }

    .hk-step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .hk-booking-dates {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto;
    }

    .hk-date-separator {
        width: 100%;
        height: 1px;
    }

    /* CRITICAL CALENDAR FIXES */
    .hk-calendar-section {
        padding: 40px 0 !important;
        margin-top: 40px;
    }

    .hk-calendar-section .hk-listing-container {
        padding: 0 16px !important;
    }

    #hk-availability-calendar {
        grid-template-columns: 1fr !important;
        gap: 20px;
        max-width: 100% !important;
    }

    .hk-cal-month {
        padding: 16px !important;
        width: 100%;
    }

    .hk-cal-day {
        min-height: 40px !important;
        padding: 6px 4px !important;
    }

    .hk-day-number {
        font-size: 13px !important;
    }

    .hk-day-price {
        font-size: 10px !important;
    }

    .hk-min-nights-badge {
        font-size: 7px !important;
        padding: 2px 4px !important;
        top: 2px;
        right: 2px;
    }

    .hk-property-image {
        width: 80px;
        height: 80px;
    }
}

/* =====================================
   RESPONSIVE DESIGN - SMALL MOBILE (480px)
   ===================================== */
@media (max-width: 480px) {
    .hk-gallery-large {
        height: 220px !important;
    }

    .hk-gallery-item {
        height: 110px !important;
    }

    .hk-listing-title {
        font-size: 20px !important;
    }

    .hk-price-amount {
        font-size: 24px !important;
    }

    .hk-section-title {
        font-size: 18px !important;
    }

    .hk-checkout-title {
        font-size: 20px !important;
    }

    .hk-view-all-photos {
        right: 16px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .hk-reserve-btn,
    .hk-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .hk-booking-card,
    .hk-summary-card {
        padding: 20px;
    }

    .hk-checkout-main {
        padding: 20px 16px;
    }

    /* CRITICAL CALENDAR FIXES FOR SMALL SCREENS */
    .hk-calendar-section {
        padding: 30px 0 !important;
    }

    .hk-cal-month {
        padding: 12px !important;
    }

    .hk-cal-day {
        min-height: 40px !important;
        padding: 4px 2px !important;
    }

    .hk-day-number {
        font-size: 12px !important;
    }

    .hk-day-price {
        font-size: 9px !important;
    }

    .hk-min-nights-badge {
        font-size: 6px !important;
        padding: 2px 3px !important;
    }

    .hk-cal-month-name {
        font-size: 16px !important;
    }

    .hk-cal-weekday {
        font-size: 10px !important;
    }
}

/* =====================================
   UTILITY CLASSES
   ===================================== */
.hk-text-center {
    text-align: center;
}

.hk-mb-0 {
    margin-bottom: 0;
}

.hk-mt-0 {
    margin-top: 0;
}

.hk-hidden {
    display: none !important;
}

.hk-visible {
    display: block !important;
}

/* =====================================
   PRINT STYLES
   ===================================== */
@media print {
    .hk-booking-card,
    .hk-reserve-btn,
    .hk-view-all-photos,
    .hk-cal-prev,
    .hk-cal-next {
        display: none !important;
    }

    .hk-listing-container,
    .hk-checkout-container {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}