/* ============================================
   SORIMO MODERN — Quartiers Detail Pages
   ============================================ */

/* === Hero === */
.q-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 60px 0;
}

.q-hero__bg {
    position: absolute;
    inset: 0;
}

.q-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.q-hero__content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.q-hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 20px;
}

.q-hero h1 {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.q-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.6;
}

/* === Stats Bar === */
.q-stats {
    background: var(--white);
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.q-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.q-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    border-right: 1px solid var(--gray-100);
}

.q-stat:last-child {
    border: none;
}

.q-stat__icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.q-stat__value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.q-stat__label {
    font-size: 13px;
    color: var(--gray-500);
}

@media (max-width: 1024px) {
    .q-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .q-stat:nth-child(2) {
        border-right: none;
    }
    .q-stat:nth-child(3),
    .q-stat:nth-child(4) {
        border-top: 1px solid var(--gray-100);
    }
}

@media (max-width: 640px) {
    .q-stats__grid {
        grid-template-columns: 1fr;
    }
    .q-stat {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
    }
    .q-stat:last-child {
        border: none;
    }
}

/* === Gallery === */
.q-gallery {
    padding: 60px 0;
    background: var(--gray-50);
}

.q-gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 16px;
}

.q-gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
}

.q-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.q-gallery__item:hover img {
    transform: scale(1.1);
}

.q-gallery__item--large {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .q-gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .q-gallery__item--large {
        grid-column: span 2;
        height: 250px;
    }
    .q-gallery__item:not(.q-gallery__item--large) {
        height: 150px;
    }
}

/* === Content === */
.q-content {
    padding: 80px 0;
}

.q-content__grid {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .q-content__grid {
        grid-template-columns: 1fr 380px;
    }
}

/* === Main Content === */
.q-main {
    max-width: 100%;
}

.q-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--gray-200);
}

.q-section:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.q-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.q-section h2 i {
    color: var(--primary);
    font-size: 20px;
}

.q-section p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.q-section p:last-child {
    margin-bottom: 0;
}

/* Transport */
.q-transport {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.q-transport__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.q-transport__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    flex-shrink: 0;
}

.q-transport__icon--metro { background: #0078BE; }
.q-transport__icon--tram { background: #FFA500; }
.q-transport__icon--bus { background: #FF6B6B; }
.q-transport__icon--car { background: var(--gray-700); }

.q-transport__item strong {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
}

.q-transport__item span {
    font-size: 13px;
    color: var(--gray-500);
}

/* POIs */
.q-pois {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.q-poi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.q-poi__icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.q-poi__content strong {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
}

.q-poi__content span {
    font-size: 12px;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .q-pois {
        grid-template-columns: 1fr;
    }
}

/* List */
.q-list {
    list-style: none;
    margin-top: 16px;
}

.q-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.q-list li:last-child {
    border: none;
}

.q-list i {
    color: var(--primary);
}

/* Investment Grid */
.q-invest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.q-invest-card {
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.q-invest-card__value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.q-invest-card__label {
    font-size: 12px;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .q-invest-grid {
        grid-template-columns: 1fr;
    }
}

/* === Sidebar === */
.q-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .q-sidebar {
        position: sticky;
        top: 100px;
    }
}

.q-sidebar__card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.q-sidebar__card--cta {
    background: var(--primary);
    color: var(--white);
}

.q-sidebar__card--cta h3 {
    color: var(--white);
}

.q-sidebar__card--cta p {
    font-size: 14px;
    opacity: 0.9;
    margin: 8px 0 20px;
}

.q-sidebar__card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

/* Info List */
.q-info-list {
    list-style: none;
}

.q-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.q-info-list li:last-child {
    border: none;
}

.q-info-list li span:first-child {
    color: var(--gray-500);
}

.q-info-list li span:last-child {
    font-weight: 500;
    color: var(--gray-900);
}

/* Map */
.q-sidebar__map {
    border-radius: var(--radius);
    overflow: hidden;
    height: 180px;
    margin-top: 8px;
}

.q-sidebar__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Mini */
.q-contact-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.q-contact-mini__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition);
}

.q-contact-mini__item:hover {
    background: var(--primary);
    color: var(--white);
}

.q-contact-mini__item i {
    width: 20px;
    text-align: center;
}

/* === Other Quartiers === */
.q-others {
    padding: 80px 0;
    background: var(--gray-50);
}

.q-others__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.q-other-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
}

.q-other-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.q-other-card:hover img {
    transform: scale(1.1);
}

.q-other-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    z-index: 1;
}

.q-other-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    color: var(--white);
}

.q-other-card__tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 10px;
}

.q-other-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.q-other-card__price {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* === Enhanced Responsive === */
@media (max-width: 1024px) {
    .q-hero {
        min-height: 60vh;
    }
    
    .q-hero h1 {
        font-size: clamp(36px, 8vw, 56px);
    }
    
    .q-content__grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .q-hero {
        min-height: 50vh;
        padding: 40px 0;
    }
    
    .q-hero h1 {
        font-size: 32px;
    }
    
    .q-hero p {
        font-size: 16px;
    }
    
    .q-hero__badge {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    /* Stats */
    .q-stats {
        margin-top: -30px;
    }
    
    .q-stats__grid {
        border-radius: var(--radius);
    }
    
    .q-stat {
        padding: 20px 16px;
    }
    
    .q-stat__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .q-stat__value {
        font-size: 20px;
    }
    
    .q-stat__label {
        font-size: 11px;
    }
    
    /* Gallery */
    .q-gallery {
        padding: 40px 0;
    }
    
    .q-gallery__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .q-gallery__item,
    .q-gallery__item--large {
        height: 200px;
        grid-row: auto;
    }
    
    /* Content */
    .q-content {
        padding: 60px 0;
    }
    
    .q-section {
        margin-bottom: 36px;
        padding-bottom: 36px;
    }
    
    .q-section h2 {
        font-size: 20px;
        gap: 10px;
    }
    
    .q-section h2 i {
        font-size: 18px;
    }
    
    .q-section p {
        font-size: 15px;
    }
    
    /* Transport */
    .q-transport__item {
        padding: 14px;
    }
    
    .q-transport__icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* POIs */
    .q-pois {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .q-poi {
        padding: 14px;
    }
    
    .q-poi__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Investment */
    .q-invest-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .q-invest-card {
        padding: 20px;
    }
    
    .q-invest-card__value {
        font-size: 24px;
    }
    
    /* Sidebar */
    .q-sidebar {
        gap: 20px;
    }
    
    .q-sidebar__card {
        padding: 24px;
    }
    
    .q-sidebar__map {
        height: 160px;
    }
    
    /* Others */
    .q-others {
        padding: 60px 0;
    }
    
    .q-others__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .q-other-card {
        height: 200px;
    }
    
    .q-other-card__content {
        padding: 20px;
    }
    
    .q-other-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .q-hero h1 {
        font-size: 28px;
    }
    
    .q-stat {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .q-section h2 {
        font-size: 18px;
    }
    
    .q-sidebar__card {
        padding: 20px;
    }
    
    .q-info-list li {
        flex-direction: column;
        gap: 4px;
        text-align: left;
    }
    
    .q-info-list li span:last-child {
        font-size: 15px;
    }
}

/* === Touch Improvements === */
@media (hover: none) {
    .q-gallery__item:hover img,
    .q-other-card:hover img {
        transform: none;
    }
}

/* === Smooth Animations === */
@media (prefers-reduced-motion: no-preference) {
    .q-stat,
    .q-section,
    .q-sidebar__card {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }
    
    .q-stat:nth-child(1) { animation-delay: 0.1s; }
    .q-stat:nth-child(2) { animation-delay: 0.2s; }
    .q-stat:nth-child(3) { animation-delay: 0.3s; }
    .q-stat:nth-child(4) { animation-delay: 0.4s; }
    
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
