/* Perfecta Casa — Buyer / Seller / Tenant Guide pages
   Shares the site's v2 design tokens (see pcasa-v2.css :root) so these
   pages match the homepage/header instead of the old red/Poppins look.
   Loaded on buyerguide.blade.php, sellerguide.blade.php, tenantguide.blade.php. */

/* Luxury Breadcrumbs */
.bg-light-luxury { background: #fcfcfc; }
.breadcrumb-wrapper { padding: 16px 0; border-bottom: 1px solid var(--pc-line); position: relative; z-index: 2; }
.breadcrumbs-luxury-path {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}
.breadcrumbs-luxury-path li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--pc-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}
.breadcrumb-link {
    color: var(--pc-slate) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.breadcrumb-link:hover { color: var(--pc-gold-strong) !important; }
.breadcrumb-link .icon { font-size: 16px; margin-right: 6px; }
.breadcrumb-separator { margin: 0 12px; color: var(--pc-line); font-size: 14px; }

/* The guide pages load this stylesheet after the shared navigation. Keep the
   tall wordmark inside the header and leave a clear separation before the
   breadcrumb row. */
@media (min-width: 992px) {
    body.pcasa-site .pcasa-native-nav,
    body.pcasa-site .pcasa-native-nav .rd-navbar-wrap,
    body.pcasa-site .pcasa-native-nav .rd-navbar-main-outer,
    body.pcasa-site .pcasa-native-nav .rd-navbar-main,
    body.pcasa-site .pcasa-native-nav .rd-navbar-panel,
    body.pcasa-site .pcasa-native-nav .rd-navbar-brand,
    body.pcasa-site .pcasa-native-nav .rd-navbar-brand > .brand {
        min-height: 112px !important;
        height: 112px !important;
    }
    body.pcasa-site .pcasa-native-nav .rd-navbar-main-outer,
    body.pcasa-site .pcasa-native-nav .rd-navbar-main {
        background: #000 !important;
    }
    body.pcasa-site .pcasa-native-nav .rd-navbar-brand,
    body.pcasa-site .pcasa-native-nav .rd-navbar-brand > .brand {
        transform: translateY(-2px) !important;
    }
    body.pcasa-site .pcasa-native-nav .brand-logo-dark,
    body.pcasa-site .pcasa-native-nav .brand-logo-light {
        width: 102px !important;
        height: 102px !important;
        object-fit: contain;
    }
    body.pcasa-site .pcasa-native-nav .rd-navbar-nav,
    body.pcasa-site .pcasa-native-nav .rd-navbar-nav > .rd-nav-item > .rd-nav-link {
        height: 112px !important;
    }
}

/* Header & Title */
.blog-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--pc-ink);
}

.badge-custom {
    display: inline-block;
    background: var(--pc-gold);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(200, 148, 46, 0.3);
}

.meta-luxury-item { font-size: 14px; color: var(--pc-muted); font-weight: 500; }
.meta-luxury-item span { color: var(--pc-gold-strong); font-size: 18px; vertical-align: middle; }

/* Media Box */
.blog-featured-media { margin-top: -30px; padding: 0 5%; }
.media-container {
    position: relative;
    border-radius: var(--pc-radius-lg);
    overflow: hidden;
    box-shadow: var(--pc-shadow-lg);
    transform-origin: center;
    transition: transform 0.5s var(--pc-ease);
}
.media-container:hover { transform: scale(1.01); }
.main-post-image { width: 100%; height: auto; display: block; }
.image-overlay-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 150px;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
}

/* City toggle */
.city-toggle-wrap { display: flex; justify-content: center; margin: 10px 0 40px; }
.city-toggle {
    display: inline-flex;
    background: var(--pc-cream);
    border: 1px solid var(--pc-line);
    border-radius: 100px;
    padding: 6px;
    gap: 4px;
}
.city-toggle-btn {
    border: 0;
    background: transparent;
    color: var(--pc-slate);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.01em;
    padding: 10px 26px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s var(--pc-ease);
}
.city-toggle-btn.active { background: var(--pc-gold); color: #fff; box-shadow: 0 8px 18px rgba(200,148,46,.25); }
.city-toggle-btn:not(.active):hover { color: var(--pc-gold-strong); }

/* Disclaimer note */
.guide-disclaimer {
    background: var(--pc-cream);
    border: 1px solid var(--pc-line);
    border-left: 4px solid var(--pc-gold);
    border-radius: var(--pc-radius-sm);
    padding: 16px 20px;
    font-size: 13.5px;
    color: var(--pc-slate);
    margin: 0 0 40px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.guide-disclaimer .icon { color: var(--pc-gold-strong); font-size: 18px; margin-top: 1px; }

/* Section headings inside the article */
.guide-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--pc-ink);
    margin: 55px 0 8px;
}
.guide-section-sub { color: var(--pc-muted); font-size: 14.5px; margin-bottom: 26px; }

/* Points grid */
.guide-points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}
.guide-point-card {
    background: var(--pc-paper);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: var(--pc-shadow-sm);
    transition: transform 0.25s var(--pc-ease), box-shadow 0.25s var(--pc-ease);
}
.guide-point-card:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow-md); }
.guide-point-num {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--pc-gold-soft);
    color: var(--pc-gold-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.guide-point-body h4 {
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--pc-ink);
    margin: 0 0 6px;
}
.guide-point-body p { font-size: 14px; line-height: 1.7; color: var(--pc-slate); margin: 0; }
.guide-point-card[data-city="dubai"],
.guide-point-card[data-city="abu_dhabi"] { display: none; }
.guide-point-card[data-city="both"] { display: flex; }
.guide-points-grid.show-dubai .guide-point-card[data-city="dubai"] { display: flex; }
.guide-points-grid.show-abu_dhabi .guide-point-card[data-city="abu_dhabi"] { display: flex; }

/* Resources / attachments */
.guide-resources-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.guide-resource-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--pc-cream);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius-sm);
    padding: 16px 20px;
    text-decoration: none !important;
    transition: all 0.25s var(--pc-ease);
}
.guide-resource-item:hover { border-color: var(--pc-gold); background: #fff; box-shadow: var(--pc-shadow-sm); }
.guide-resource-item .icon { font-size: 26px; color: var(--pc-gold-strong); }
.guide-resource-title { font-weight: 700; color: var(--pc-ink); font-size: 14.5px; }
.guide-resource-meta { font-size: 12.5px; color: var(--pc-muted); }
.guide-resource-download { margin-left: auto; color: var(--pc-gold-strong) !important; font-size: 20px; }

/* Print button */
.guide-tools-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-print-guide {
    border: 1px solid rgba(16,21,29,.18);
    background: #fff;
    color: var(--pc-ink);
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .25s var(--pc-ease);
}
.btn-print-guide:hover { border-color: var(--pc-gold); color: var(--pc-gold-strong); }

/* Article content */
.article-content { font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1.9; color: var(--pc-slate); }
.article-content p { margin-bottom: 24px; }
.article-content h2, .article-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    margin-top: 45px;
    margin-bottom: 22px;
    font-weight: 700;
    color: var(--pc-ink);
}
.article-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    background: #fff;
    border-radius: var(--pc-radius-sm);
    overflow: hidden;
    box-shadow: var(--pc-shadow-sm);
}
.article-content table thead tr { background-color: var(--pc-ink); color: #ffffff; text-align: left; }
.article-content table th, .article-content table td { padding: 14px 18px; border: 1px solid var(--pc-line); }
.article-content table tbody tr:nth-of-type(even) { background-color: var(--pc-cream); }

/* Social group */
.social-luxury-group { display: flex; gap: 12px; }
.social-lux {
    width: 44px; height: 44px;
    background: var(--pc-cream);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--pc-ink) !important;
    font-size: 17px;
    transition: all 0.3s ease;
}
.social-lux:hover { background: var(--pc-gold); color: #fff !important; transform: translateY(-4px); }

.btn-luxury-back {
    padding: 14px 28px;
    background: var(--pc-ink);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 700;
    text-transform: none;
    font-size: 12.5px;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
}
.btn-luxury-back:hover { background: var(--pc-gold-strong); }

@media (max-width: 991px) {
    .blog-main-title { font-size: 2.1rem; }
    .blog-featured-media { padding: 0; margin-top: 20px; }
    .guide-points-grid { grid-template-columns: 1fr; }
}

/* Print styles — used by the "Print / Save as PDF" button so a visitor can
   produce a clean, shareable printout of the guide via the browser's own
   print dialog (Save as PDF works in every modern browser, no server
   dependency needed). */
@media print {
    .rd-navbar-aside-outer, .rd-navbar-main-outer, .rd-megamenu,
    footer, .breadcrumb-wrapper, .city-toggle-wrap, .guide-tools-row,
    .article-footer-luxury, .btn-print-guide, .ai-chat-widget,
    .back-to-top, script { display: none !important; }
    body { background: #fff !important; }
    .guide-point-card, .guide-resource-item { break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd !important; }
    .guide-points-grid { display: block !important; }
    .guide-points-grid .guide-point-card { display: flex !important; margin-bottom: 14px; }
    a[href]:after { content: none !important; }
}
