@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --pub-primary: #0d9488;
    --pub-primary-dark: #0f766e;
    --pub-primary-light: #ccfbf1;
    --pub-dark: #0f172a;
    --pub-text: #1e293b;
    --pub-text-muted: #64748b;
    --pub-bg: #ffffff;
    --pub-bg-alt: #f8fafc;
    --pub-border: #e2e8f0;
    --pub-radius: 16px;
    --pub-radius-sm: 12px;
    --pub-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --pub-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --pub-transition: 0.25s ease;
}

body.pub-body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--pub-text);
    background: var(--pub-bg);
}

/* Navbar */
.pub-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pub-border);
    padding: 0.65rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pub-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--pub-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pub-navbar .navbar-brand i,
.pub-brand-icon {
    color: var(--pub-primary);
    font-size: 1.35rem;
}

.pub-navbar .nav-link {
    font-weight: 500;
    color: var(--pub-text-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all var(--pub-transition);
    font-size: 0.925rem;
}

.pub-navbar .nav-link:hover,
.pub-navbar .nav-link.active {
    color: var(--pub-primary) !important;
    background: var(--pub-primary-light);
}

.pub-btn-nav {
    background: var(--pub-primary) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 0.45rem 1.25rem !important;
    font-weight: 600 !important;
}

.pub-btn-nav:hover {
    background: var(--pub-primary-dark) !important;
    transform: translateY(-1px);
}

/* Hero */
.pub-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0d9488 100%);
    color: #fff;
    overflow: hidden;
}

.pub-hero--carousel { min-height: 560px; padding: 0; }

.pub-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.pub-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 100%);
}

.pub-hero__content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.pub-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.pub-hero p.lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 540px;
    line-height: 1.7;
}

.pub-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--pub-transition);
    border: none;
    cursor: pointer;
}

.pub-btn--primary { background: var(--pub-primary); color: #fff; }
.pub-btn--primary:hover { background: #14b8a6; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,0.35); }

.pub-btn--white { background: #fff; color: var(--pub-dark); }
.pub-btn--white:hover { background: #f1f5f9; color: var(--pub-dark); transform: translateY(-2px); }

.pub-btn--outline { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.pub-btn--outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

.pub-btn--outline-dark { background: transparent; border: 2px solid var(--pub-border); color: var(--pub-text); }
.pub-btn--outline-dark:hover { border-color: var(--pub-primary); color: var(--pub-primary); }

/* Search box */
.pub-search-box {
    background: #fff;
    border-radius: var(--pub-radius);
    padding: 1.5rem;
    box-shadow: var(--pub-shadow-lg);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.pub-search-box .form-control,
.pub-search-box .form-select {
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.925rem;
}

.pub-search-box .form-control:focus,
.pub-search-box .form-select:focus {
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

/* Sections */
.pub-section { padding: 5rem 0; }
.pub-section--alt { background: var(--pub-bg-alt); }

.pub-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.pub-section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pub-section-header p {
    color: var(--pub-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pub-section-header .pub-label {
    display: inline-block;
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

/* Cards */
.pub-card {
    background: #fff;
    border-radius: var(--pub-radius);
    overflow: hidden;
    border: 1px solid var(--pub-border);
    transition: all var(--pub-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pub-shadow-lg);
    border-color: transparent;
}

.pub-card__img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.pub-card__img--placeholder {
    height: 220px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pub-text-muted);
    font-size: 2.5rem;
}

.pub-card__body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }

.pub-card__badge {
    display: inline-block;
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.pub-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.pub-card__meta {
    color: var(--pub-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pub-card__text {
    color: var(--pub-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.pub-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.pub-card__price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pub-primary);
}

/* Stats strip */
.pub-stats {
    background: var(--pub-dark);
    color: #fff;
    padding: 3rem 0;
}

.pub-stat-item { text-align: center; }
.pub-stat-item__value { font-size: 2.5rem; font-weight: 800; color: #5eead4; }
.pub-stat-item__label { font-size: 0.9rem; opacity: 0.75; margin-top: 0.25rem; }

/* CTA */
.pub-cta {
    background: linear-gradient(135deg, var(--pub-primary-dark), var(--pub-primary));
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    border-radius: var(--pub-radius);
    margin: 0 1rem;
}

.pub-cta h2 { font-weight: 800; margin-bottom: 0.75rem; }
.pub-cta p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Features */
.pub-feature {
    text-align: center;
    padding: 2rem 1.5rem;
}

.pub-feature__icon {
    width: 64px; height: 64px;
    background: var(--pub-primary-light);
    color: var(--pub-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.pub-feature h4 { font-weight: 700; margin-bottom: 0.5rem; }
.pub-feature p { color: var(--pub-text-muted); font-size: 0.925rem; line-height: 1.6; margin: 0; }

/* Page header (inner pages) */
.pub-page-hero {
    background: linear-gradient(135deg, #f8fafc, #ecfdf5);
    padding: 3rem 0;
    border-bottom: 1px solid var(--pub-border);
}

.pub-page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pub-page-hero p { color: var(--pub-text-muted); margin: 0; }

/* Filter bar */
.pub-filter-bar {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--pub-shadow);
}

/* Detail page */
.pub-detail-hero-img {
    border-radius: var(--pub-radius);
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: var(--pub-shadow-lg);
}

.pub-detail-sidebar {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.pub-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--pub-bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Accordion */
.pub-accordion .accordion-item {
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-sm) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.pub-accordion .accordion-button {
    font-weight: 600;
    padding: 1.15rem 1.25rem;
}

.pub-accordion .accordion-button:not(.collapsed) {
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
}

/* Footer */
.pub-footer {
    background: var(--pub-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.pub-footer h5 { color: #fff; font-weight: 700; margin-bottom: 1.25rem; }
.pub-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color var(--pub-transition); }
.pub-footer a:hover { color: #5eead4; }
.pub-footer__social a {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-right: 0.5rem;
    font-size: 1.15rem;
}
.pub-footer__social a:hover { background: var(--pub-primary); color: #fff; }

/* Contact / forms */
.pub-form-card {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 2rem;
    box-shadow: var(--pub-shadow);
}

.pub-form-card .form-control,
.pub-form-card .form-select {
    border-radius: var(--pub-radius-sm);
    padding: 0.75rem 1rem;
    border-color: var(--pub-border);
}

.pub-form-card .form-control:focus {
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

/* Empty state */
.pub-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--pub-bg-alt);
    border-radius: var(--pub-radius);
}

.pub-empty i { font-size: 3rem; color: var(--pub-text-muted); margin-bottom: 1rem; display: block; }

/* Carousel override */
.pub-carousel .carousel-item { height: 560px; }
.pub-carousel .carousel-item img { object-fit: cover; height: 100%; }
.pub-carousel .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 600px;
}
.pub-carousel .carousel-caption h2 { font-size: 2.5rem; font-weight: 800; }

/* Breadcrumb */
.pub-breadcrumb { font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Review card */
.pub-review-card {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.pub-stars { color: #f59e0b; }

/* Alert */
.pub-alert {
    border-radius: var(--pub-radius-sm);
    border: none;
    padding: 1rem 1.25rem;
}

@media (max-width: 991.98px) {
    .pub-hero { min-height: 420px; }
    .pub-search-box { margin-top: -2rem; }
    .pub-detail-sidebar { position: static; margin-top: 2rem; }
}

@media (max-width: 767.98px) {
    .pub-section { padding: 3rem 0; }
    .pub-carousel .carousel-item { height: 400px; }
    .pub-detail-hero-img { height: 280px; }
}
