/**
 * property-template.css
 * Save to: /wp-content/themes/YOUR-CHILD-THEME/assets/css/property-template.css
 */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.orp-property-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    box-sizing: border-box;
}

/* ── Generic row ─────────────────────────────────────────────────────────── */
.orp-row {
    width: 100%;
    margin-bottom: 2rem;
}

/* ── Full-width columns ──────────────────────────────────────────────────── */
.orp-col-full {
    width: 100%;
}

/* ── Two-column layout 60 / 40 ───────────────────────────────────────────── */
.orp-two-col-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.orp-col-60 {
    flex: 0 0 calc(60% - 1rem);
    min-width: 0;
}

.orp-col-40 {
    flex: 0 0 calc(40% - 1rem);
    min-width: 0;
}

/* ── Stats line (beds/baths) ─────────────────────────────────────────────── */
.orp-stats-line {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1em;
}

/* ── Accordion ───────────────────────────────────────────────────────────── */
.orp-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.orp-accordion__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f7f7f7;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.orp-accordion__trigger:hover {
    background: #efefef;
}

/* Arrow icon via CSS */
.orp-accordion__icon {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 0.5em;
}

.orp-accordion__trigger[aria-expanded="true"] .orp-accordion__icon {
    transform: rotate(-135deg);
}

.orp-accordion__drawer {
    padding: 1.25rem;
    border-top: 1px solid #e0e0e0;
}

/* ── Booking widget sticky sidebar ──────────────────────────────────────── */
.orp-booking-widget {
    position: sticky;
    top: 2rem;
    background: #fff;
    border: 0px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: none!important;
}

.orp-booking-placeholder {
    color: #888;
    font-style: italic;
}

/* ── No-ID notice ────────────────────────────────────────────────────────── */
.orp-no-id-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem 1.25rem;
    border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 768px ) {
    .orp-col-60,
    .orp-col-40 {
        flex: 0 0 100%;
    }

    .orp-booking-widget {
        position: static;
    }
}
