/* Open Homes Frontend Styles */

.oh-tour-guide {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #333;
}

/* ── Archive Selector ──────────────────────────────────────── */
.oh-archive-selector {
    margin-bottom: 15px;
    text-align: right;
}
.oh-archive-selector select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* ── Header ────────────────────────────────────────────────── */
.oh-tour-header {
    text-align: center;
    padding: 20px 15px;
    border-bottom: 3px solid #2c3e50;
    margin-bottom: 20px;
}
.oh-logo img { max-width: 280px; height: auto; margin-bottom: 8px; }
.oh-tour-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}
.oh-tagline { font-size: 13px; color: #555; margin-top: 6px; line-height: 1.4; }
.oh-contact { font-size: 14px; font-weight: 600; margin-top: 4px; color: #2c3e50; }

/* Contact links — inherit header color, underline on hover */
.oh-contact-link {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px dashed #2c3e50;
    transition: color 0.2s, border-color 0.2s;
}
.oh-contact-link:hover {
    color: #d35400;
    border-bottom-color: #d35400;
}
.oh-contact-sep { color: #2c3e50; }

/* ── Day Banner ────────────────────────────────────────────── */
.oh-day-banner {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 17px;
    margin: 25px 0 15px;
    letter-spacing: 0.5px;
}

/* ── Day QR ────────────────────────────────────────────────── */
.oh-day-qr {
    text-align: center;
    margin-bottom: 10px;
}
.oh-route-qr-img { width: 100px; height: 100px; border-radius: 4px; }
.oh-qr-caption { font-size: 11px; color: #777; display: block; margin-top: 2px; }

/* QR link — no blue outline */
.oh-qr-link { display: inline-block; text-decoration: none; }
.oh-qr-link:hover img { opacity: 0.85; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* ── Listing Card ──────────────────────────────────────────── */
.oh-listing-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}
.oh-listing-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.oh-listing-featured {
    background: #fffde7;
    border-color: #f0c040;
    border-left: 5px solid #f0c040;
}

.oh-card-image { flex: 0 0 220px; }
.oh-card-image a { display: block; text-decoration: none; }
.oh-card-image img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: opacity 0.2s;
}
.oh-card-image a:hover img { opacity: 0.88; }

.oh-card-content { flex: 1; min-width: 0; }

.oh-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}
.oh-card-mls { font-size: 11px; color: #aaa; font-weight: 400; margin-left: 8px; }

/* Price change indicator */
.oh-price-change {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}
.oh-price-decrease {
    background: #d4edda;
    color: #155724;
}
.oh-price-increase {
    background: #f8d7da;
    color: #721c24;
}

/* Open houses count badge */
.oh-card-oh-count {
    font-weight: 600;
    color: #2271b1;
}

.oh-card-address {
    font-size: 15px;
    font-weight: 600;
    color: #d35400;
    margin-bottom: 4px;
}
.oh-stop-number { color: #2271b1; font-weight: 700; margin-right: 3px; }

.oh-card-meta {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.oh-card-time {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}
.oh-card-time .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 3px;
}

.oh-card-description {
    font-size: 13px;
    color: #555;
    font-style: italic;
    line-height: 1.4;
    margin-top: 4px;
}

.oh-card-callout {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 12px;
    background: #eef6ff;
    color: #2271b1;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.oh-card-qr { flex: 0 0 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.oh-nav-qr-img { width: 60px; height: 60px; }
.oh-qr-label-above { font-size: 9px; color: #555; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.oh-qr-label-below { font-size: 9px; color: #555; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.oh-day-qr .oh-qr-label-above { display: block; margin-bottom: 3px; }

/* ── Footer ────────────────────────────────────────────────── */
.oh-tour-footer {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-top: 2px solid #e8e8e8;
    font-size: 12px;
    color: #777;
}
.oh-footer-link {
    color: #2271b1;
    text-decoration: none;
}
.oh-footer-link:hover { text-decoration: underline; }

/* ── Print / Download Buttons ─────────────────────────────── */
.oh-print-btn-wrap {
    text-align: center;
    margin: 25px 0;
}
.oh-print-btn {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.oh-print-btn:hover { background: #1a252f; color: #fff; }
.oh-print-btn-wrap .oh-print-hint { font-size: 12px; color: #999; margin-top: 6px; }

/* Download Tour PDF button */
.oh-download-btn {
    display: inline-block;
    text-decoration: none;
    margin-left: 10px;
    background: #d35400;
}
.oh-download-btn:hover { background: #a04000; color: #fff; }

/* ── No Tour ───────────────────────────────────────────────── */
.oh-no-tour {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* ── Mobile Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    .oh-listing-card {
        flex-direction: column;
        gap: 10px;
    }
    .oh-card-image { flex: none; }
    .oh-card-image img {
        width: 100%;
        height: auto;
        max-height: 220px;
    }
    .oh-card-qr {
        flex: none;
        justify-content: flex-start;
    }
    .oh-tour-title { font-size: 18px; }
    .oh-day-banner { font-size: 14px; }
    .oh-card-price { font-size: 17px; }
    .oh-card-address { font-size: 14px; }
    .oh-download-btn { margin-left: 0; margin-top: 8px; }
}

/* ── Print Styles ──────────────────────────────────────────── */
@media print {
    .no-print, .oh-archive-selector, .oh-print-btn-wrap { display: none !important; }

    .oh-tour-guide { max-width: 100%; }
    .oh-listing-card { page-break-inside: avoid; border: none; box-shadow: none; padding: 8px 0; }
    .oh-tour-day { page-break-before: auto; }
    .oh-day-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .oh-listing-featured { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    .oh-card-image img { width: 180px; height: 120px; }
    .oh-card-image { flex: 0 0 180px; }

    /* Remove link styling in print */
    .oh-contact-link { border-bottom: none; color: #2c3e50; }
    .oh-footer-link { color: #777; text-decoration: none; }
}
