/* ============================================
   SHORT STAY HOUSES - HOMEPAGE STYLES
   ============================================
   File: homepage.css
   Location: /wp-content/themes/rym-main-theme/homepage.css
   Enqueue in functions.php (see instructions)
   ============================================ */


/* ============================================
   COMMISSION HIGHLIGHT
   ============================================ */

.commission-highlight {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(140, 104, 218, 0.15) 100%);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.commission-highlight-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: #ec4899;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.commission-highlight-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0 0;
}


/* ============================================
   DEMO CARDS
   ============================================ */

.demo-card .demo-image.has-screenshot {
    padding: 0;
    overflow: hidden;
}

.demo-card .demo-image.has-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ============================================
   FOOTER
   ============================================ */

.footer-logo-small {
    height: 50px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-credits {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-credits a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-credits a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* ============================================
   PRICING LOADING STATES
   ============================================ */

.pricing-card.loading {
    opacity: 0.6;
}

.pricing-card .skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#pricing-grid:empty::before {
    content: 'Loading pricing...';
    display: block;
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.6);
    grid-column: 1 / -1;
}


/* ============================================
   CALCULATOR BREAKDOWN
   ============================================ */

.breakdown-container {
    margin-top: 20px;
}

.breakdown-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.9rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.breakdown-total {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 4px;
    padding-top: 12px;
    font-weight: 600;
}

.breakdown-label {
    color: rgba(255, 255, 255, 0.7);
}

.breakdown-value {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.breakdown-deduction {
    color: #ff6b6b !important;
}

.commission-lost {
    color: #ff6b6b;
    font-weight: 700;
}

.result-card.mainstream {
    background: linear-gradient(135deg, rgba(100, 100, 120, 0.4) 0%, rgba(80, 80, 100, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .breakdown-card {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}


/* ============================================
   FEATURES SECTION
   ============================================ */

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.feature-block:last-child {
    border-bottom: none;
}

.feature-block:nth-child(even) {
    direction: rtl;
}

.feature-block:nth-child(even) > * {
    direction: ltr;
}

.feature-block__content {
    max-width: 520px;
}

.feature-block__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-block__eyebrow svg {
    width: 18px;
    height: 18px;
}

.feature-block__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-block__desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-block__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.feature-block__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-block__list svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-block__visual {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.feature-block__visual:hover {
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(140, 104, 218, 0.2);
}

.feature-block__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(140, 104, 218, 0.1) 0%, rgba(255, 126, 153, 0.1) 100%);
    pointer-events: none;
}

.mock-browser {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: var(--darker);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mock-browser__header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.mock-browser__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-browser__dot:nth-child(1) { background: #ef4444; }
.mock-browser__dot:nth-child(2) { background: #f59e0b; }
.mock-browser__dot:nth-child(3) { background: #22c55e; }

.mock-browser__content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.mock-row {
    height: 12px;
    background: var(--glass);
    border-radius: 4px;
    width: 100%;
}

.mock-row--short { width: 60%; }
.mock-row--medium { width: 80%; }

.mock-browser__screenshot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}


/* ============================================
   FEATURES RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .feature-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block:nth-child(even) {
        direction: ltr;
    }

    .feature-block__content {
        max-width: 100%;
    }

    .feature-block__visual {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 640px) {
    .feature-block {
        padding: 2rem 1.25rem;
    }

    .feature-block__title {
        font-size: 1.4rem;
    }

    .feature-block__visual {
        aspect-ratio: 4/3;
        padding: 1rem;
    }
}


/* ============================================
   IMPORT SHOWCASE
   ============================================ */

.import-showcase-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.import-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Input Section */
.import-input-section {
    text-align: center;
}

.import-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px 8px 8px 20px;
    transition: all 0.3s ease;
}

.import-input-wrapper:focus-within {
    border-color: rgba(140, 104, 218, 0.5);
    box-shadow: 0 0 0 4px rgba(140, 104, 218, 0.1);
}

.import-input-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.import-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 12px 0;
    outline: none;
}

.import-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.import-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    flex-shrink: 0;
}

.import-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.import-hint {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* Progress Section */
.import-progress {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.progress-stages::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.stage-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-stage.active .stage-dot {
    background: linear-gradient(135deg, #8c68da, #ec4899);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(140, 104, 218, 0.5);
    animation: pulse 1.5s infinite;
}

.progress-stage.complete .stage-dot {
    background: #10b981;
    border-color: transparent;
}

.progress-stage.complete .stage-dot::after {
    content: '\2713';
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.progress-stage span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.progress-stage.active span,
.progress-stage.complete span {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8c68da, #ec4899);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Error Section */
.import-error {
    margin-top: 40px;
    padding: 40px;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.import-error p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Result Section */
.import-result {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-success {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #10b981;
    font-weight: 600;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
}

/* Property Preview Container */
.property-preview-container {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 8px 15px 0px rgb(0 0 0 / 35%);
}

.property-preview {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    background: #fff;
}

.preview-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 180px 180px;
    gap: 4px;
}

.preview-gallery-main {
    grid-row: span 2;
}

.preview-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-gallery-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}

.preview-content {
    padding: 32px;
}

.preview-header {
    margin-bottom: 24px;
}

.preview-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8c68da;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.preview-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.preview-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
}

.preview-meta {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.preview-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 14px;
}

.preview-section {
    margin-bottom: 28px;
}

.preview-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.preview-description {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.preview-bedrooms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.preview-bedroom-card {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.preview-bedroom-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.preview-bedroom-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.preview-bedroom-beds {
    font-size: 12px;
    color: #64748b;
}

.preview-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-amenity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #475569;
}

.preview-calendar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.preview-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.preview-calendar-month {
    font-weight: 600;
    color: #0f172a;
}

.preview-calendar-nav {
    display: flex;
    gap: 8px;
}

.preview-calendar-nav button {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
}

.preview-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.preview-calendar-day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    padding: 8px 0;
}

.preview-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 6px;
    color: #475569;
}

.preview-calendar-day.available {
    background: #fff;
}

.preview-calendar-day.booked {
    background: #fef2f2;
    color: #f87171;
    text-decoration: line-through;
}

.preview-reviews {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.preview-reviews-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.preview-rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #8c68da;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.preview-reviews-count {
    color: #64748b;
    font-size: 14px;
}

.preview-map {
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 8px;
}

.preview-map-icon {
    font-size: 32px;
    opacity: 0.5;
}

.preview-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.preview-rule-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.preview-rule-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.preview-rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.preview-rule-list li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Booking Card Sidebar */
.preview-booking-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.preview-booking-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.preview-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.preview-price-period {
    color: #64748b;
    font-size: 14px;
}

.preview-date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.preview-date-input {
    padding: 12px;
    background: #fff;
}

.preview-date-input:first-child {
    border-right: 1px solid #e2e8f0;
}

.preview-date-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.preview-date-value {
    font-size: 13px;
    color: #94a3b8;
}

.preview-book-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8c68da, #ec4899);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.preview-book-note {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}

/* Two column layout */
.preview-two-col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.preview-main-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Result CTA */
.result-cta {
    margin-top: 32px;
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(140, 104, 218, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(140, 104, 218, 0.2);
    border-radius: 16px;
}

.result-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 18px;
}


/* ============================================
   IMPORT SHOWCASE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .import-card {
        padding: 24px;
    }

    .import-input-wrapper {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .import-input-icon {
        display: none;
    }

    .import-input {
        width: 100%;
        text-align: center;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 12px;
    }

    .import-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .progress-stages {
        gap: 8px;
    }

    .progress-stage span {
        font-size: 10px;
    }

    .preview-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 200px;
    }

    .preview-gallery-grid {
        display: none;
    }

    .preview-content {
        padding: 20px;
    }

    .preview-title {
        font-size: 24px;
    }

    .preview-two-col {
        grid-template-columns: 1fr;
    }

    .preview-booking-card {
        position: relative;
    }

    .preview-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .preview-bedrooms {
        grid-template-columns: 1fr 1fr;
    }

    .preview-amenities {
        gap: 6px;
    }

    .preview-amenity {
        padding: 6px 10px;
        font-size: 12px;
    }

    .preview-rules {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
        gap: 12px;
    }

    .result-cta {
        padding: 24px 16px;
    }

    .result-cta p {
        font-size: 16px;
    }

    .result-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}