:root {
    --primary: #6c8cf5;
    --primary-hover: #5a79e6;
    --secondary: #a8c5ff;
    --accent: #f4b183;
    --background: #f8fafc;
    --surface: #ffffff;
    --soft-section: #eef4ff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --shadow-soft: 0 12px 32px rgba(31, 41, 55, 0.08);
    --shadow-card: 0 8px 24px rgba(31, 41, 55, 0.06);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.detail-page {
    min-width: 1200px;
    background: var(--background);
    color: var(--text-primary);
    font-family: "Poppins", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 96px, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 110;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.header-inner {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--primary), #7ba0ff);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(108, 140, 245, 0.28);
}

.brand-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 1.16rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-family: "Montserrat", sans-serif;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-primary);
    background: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.full-width {
    width: 100%;
}

.detail-hero-section {
    padding: 38px 0 24px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 22px;
    align-items: start;
}

.detail-right-column {
    display: grid;
    gap: 14px;
}

.detail-gallery-card,
.detail-main-info-card,
.booking-sticky-card,
.detail-content-card,
.rental-info-card,
.reviews-wrapper {
    background: #fff;
    border: 1px solid #e8edf8;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.detail-gallery-card {
    padding: 16px;
}

.gallery-main-photo {
    margin: 0;
}

.gallery-main-photo img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 14px;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.thumb {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.thumb img {
    width: 100%;
    height: 86px;
    object-fit: cover;
    display: block;
}

.thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 140, 245, 0.15);
}

.detail-main-info-card {
    padding: 22px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    font-weight: 600;
}

.detail-main-info-card h1 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    line-height: 1.2;
}

.badges-row {
    margin-top: 14px;
    display: flex;
    gap: 8px;
}

.badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 600;
}

.badge.category {
    background: #eaf0ff;
    color: #3655b8;
}

.badge.status.available {
    background: #ecfdf3;
    color: #166534;
}

.rental-company {
    margin: 14px 0;
    color: #4b5563;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    padding: 9px 10px;
    color: #475569;
    font-size: 0.87rem;
}

.meta-item i {
    color: var(--primary);
}

.price-highlight {
    margin-top: 16px;
    background: #f4f7ff;
    border: 1px solid #e0e8fb;
    border-radius: 12px;
    padding: 14px;
}

.price-highlight p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
}

.price-highlight strong {
    font-family: "Montserrat", sans-serif;
    color: var(--primary);
    font-size: 1.6rem;
}

.price-highlight strong span {
    color: #64748b;
    font-size: 0.88rem;
}

.booking-sticky-card {
    padding: 18px;
    position: sticky;
    top: 100px;
}

.booking-label {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
}

.booking-sticky-card h3 {
    margin: 4px 0 12px;
    font-family: "Montserrat", sans-serif;
    color: var(--primary);
    font-size: 1.65rem;
}

.booking-sticky-card h3 span {
    color: #64748b;
    font-size: 0.84rem;
}

.booking-meta {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.booking-meta i {
    color: var(--primary);
    margin-right: 6px;
}

.text-link {
    margin-top: 10px;
    display: inline-block;
    color: #4f46e5;
    font-weight: 600;
}

.text-link:hover {
    color: var(--primary-hover);
}

.detail-section {
    padding: 0 0 24px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.66rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.spec-item {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 13px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 4px;
}

.spec-item i {
    color: var(--primary);
    font-size: 1rem;
}

.spec-item span {
    color: #64748b;
    font-size: 0.8rem;
}

.spec-item strong {
    font-size: 0.92rem;
    color: #1f2937;
}

.detail-content-card {
    padding: 24px;
}

.detail-content-card p {
    margin: 0;
    color: #4b5563;
}

.key-points,
.terms-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: #374151;
}

.key-points li,
.terms-list li {
    margin-bottom: 8px;
}

.soft-card {
    background: var(--soft-section);
    border-color: #dbe8ff;
}

.rental-info-card {
    padding: 24px;
}

.rental-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.rental-profile img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
}

.rental-profile h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

.rental-profile p {
    margin: 4px 0 0;
    color: #64748b;
}

.rental-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.rental-meta-grid div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e9edf5;
    color: #475569;
    font-size: 0.9rem;
}

.rental-meta-grid i {
    color: var(--primary);
}

.rental-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rental-stats article {
    border: 1px solid #e5ecff;
    background: #f6f9ff;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.rental-stats strong {
    display: block;
    font-family: "Montserrat", sans-serif;
    color: #3655b8;
}

.rental-stats span {
    color: #64748b;
    font-size: 0.82rem;
}

.reviews-wrapper {
    padding: 24px;
    margin-bottom: 10px;
}

.review-summary {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
}

.score-card {
    border: 1px solid #e5ecff;
    background: #f6f9ff;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
}

.score-card strong {
    font-family: "Montserrat", sans-serif;
    font-size: 2.6rem;
    color: #3655b8;
    line-height: 1;
}

.score-card span {
    font-family: "Montserrat", sans-serif;
    color: #64748b;
}

.score-card p {
    margin: 8px 0 0;
    color: #64748b;
}

.score-bars {
    display: grid;
    gap: 11px;
}

.score-bars div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px;
    align-items: center;
}

.score-bars label {
    color: #64748b;
    font-size: 0.86rem;
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: #e8edf7;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #8ea8ff);
}

.review-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.review-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow-card);
}

.review-head {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-head img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.review-head h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
}

.review-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.77rem;
}

.stars {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.82rem;
}

.review-card p {
    margin: 0;
    color: #475569;
    font-size: 0.89rem;
}

.site-footer {
    background: #e7eefc;
    border-top: 1px solid #d9e4fb;
    margin-top: 30px;
}

.footer-grid {
    padding: 70px 0 36px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand p {
    margin-top: 14px;
    color: #4d5b76;
    max-width: 340px;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.footer-col a,
.footer-col p {
    display: block;
    margin: 0 0 9px;
    color: #4d5b76;
    font-size: 0.93rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d4def5;
    color: #4e5e7f;
}

.social-links a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #d7e1f8;
    padding: 18px 0;
    color: #5f6f8d;
    font-size: 0.9rem;
}

.detail-gallery-card,
.detail-main-info-card,
.booking-sticky-card,
.spec-item,
.detail-content-card,
.rental-info-card,
.reviews-wrapper,
.review-card {
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
