/* =========================================
   Merve Comfort Aparts Hannover – Custom CSS
   Bootstrap 5 + Font Awesome 6
   ========================================= */

/* ---- CSS Variables ---- */
:root {
    --primary:      #1a3c5e;
    --primary-dark: #0f2540;
    --primary-light:#2e5d8e;
    --accent:       #e8a317;
    --accent-dark:  #c78c10;
    --success:      #27ae60;
    --text-dark:    #1a1a2e;
    --text-muted:   #6c757d;
    --bg-light:     #f4f7fa;
    --white:        #ffffff;
    --shadow-sm:    0 2px 12px rgba(0,0,0,0.08);
    --shadow-md:    0 6px 25px rgba(0,0,0,0.12);
    --shadow-lg:    0 12px 40px rgba(0,0,0,0.15);
    --radius:       12px;
    --radius-lg:    20px;
    --transition:   all 0.3s ease;
}

/* ---- Base ---- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;   /* prevents horizontal scroll at root */
    max-width: 100%;
}

/* Font metric override – reduces CLS caused by Poppins → fallback swap */
@font-face {
    font-family: 'Poppins-fallback';
    src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('sans-serif');
    size-adjust: 97.5%;
    ascent-override: 105%;
    descent-override: 35%;
    line-gap-override: 0%;
}

body {
    font-family: 'Poppins', 'Poppins-fallback', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
}

/* ---- Bootstrap Overrides ---- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }

/* ---- Accent ---- */
.text-accent  { color: var(--accent) !important; }
.bg-accent    { background-color: var(--accent) !important; }

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #1a1a2e;
    font-weight: 600;
}
.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #1a1a2e;
}

/* ---- Section Spacing ---- */
.section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-section {
    background-color: var(--bg-light);
}

/* ---- Section Typography ---- */
.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.25;
    color: var(--text-dark);
}

/* ===================================
   INFO / MAINTENANCE BAR
   =================================== */
.info-bar {
    background: linear-gradient(90deg, #0f2540 0%, #1a3c5e 60%, #c78c10 100%);
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    max-height: 160px;
    overflow: hidden;
}

.info-bar--hidden {
    max-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.info-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 0.9rem;
    flex-shrink: 0;
    animation: spin-tool 4s ease-in-out infinite;
}

@keyframes spin-tool {
    0%,80%,100% { transform: rotate(0deg); }
    40%         { transform: rotate(-20deg); }
}

.info-bar-text {
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.3;
}

.info-bar-contact {
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    white-space: nowrap;
}

.info-bar-contact:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.info-bar-wa {
    background: rgba(37,211,102,0.2);
    border-color: #25D366;
    color: #a8f5c3;
}

.info-bar-wa:hover {
    background: #25D366;
    color: #fff;
}

.info-bar-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    padding: 4px 6px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.info-bar-close:hover {
    color: #fff;
    transform: scale(1.2);
}

/* ===================================
   LANGUAGE SWITCHER
   =================================== */
.lang-switcher {
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1.5px solid rgba(26,60,94,0.2);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===================================
   RTL SUPPORT
   =================================== */
body.rtl {
    font-family: 'Poppins', 'Noto Sans Arabic', sans-serif;
    direction: rtl;
    text-align: right;
}

body.rtl .navbar-nav {
    flex-direction: row-reverse;
}

body.rtl .ms-auto { margin-left: unset !important; margin-right: auto !important; }
body.rtl .ms-lg-2 { margin-left: unset !important; margin-right: 0.5rem !important; }
body.rtl .me-1, body.rtl .me-2 { margin-right: unset !important; margin-left: 0.25rem !important; }
body.rtl .me-2  { margin-left: 0.5rem !important; }
body.rtl .me-3  { margin-left: 1rem !important; margin-right: 0 !important; }
body.rtl .text-md-start { text-align: right !important; }
body.rtl .text-md-end   { text-align: left !important; }
body.rtl .float-buttons { right: unset; left: 28px; }
body.rtl .stat-card { flex-direction: row-reverse; }
body.rtl .about-img-wrap { padding-right: 0; padding-left: 30px; }
body.rtl .about-badge-float { right: unset; left: 0; }
body.rtl .dropdown-menu { text-align: right; }
body.rtl .info-bar .container { flex-direction: row-reverse; }

/* ===================================
   FORM VALIDATION STYLES
   =================================== */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-image: none;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.12);
}

/* ===================================
   NAVBAR – sticky, sits below info bar
   =================================== */
#mainNav {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 1030;
    position: sticky;
    top: 0; /* overridden by JS to sit below info bar */
}

/* ===================================
   TOP BAR
   =================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: #fff;
    font-size: 0.82rem;
    position: relative;
    z-index: 1039;
}
.top-bar a {
    transition: var(--transition);
}
.top-bar a:hover {
    color: var(--accent) !important;
}

#mainNav.scrolled {
    box-shadow: var(--shadow-md);
}

#mainNav .navbar-brand {
    padding-top: 6px;
    padding-bottom: 6px;
}

.navbar-logo {
    height: 72px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

/* ── Footer Logo Card (big-brand style) ── */
.footer-logo-card {
    display: inline-block;
    background: #fff;
    border-radius: 18px;
    padding: 16px 28px;
    margin-bottom: 8px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.28),
        0 2px 8px  rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-logo-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 44px rgba(0,0,0,0.35),
        0 4px 12px  rgba(0,0,0,0.2);
}
.footer-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

#mainNav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0.6rem;
    transition: var(--transition);
    position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary);
}

#mainNav .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    min-width: max-content;
    max-width: none;
}

#mainNav .dropdown-item {
    padding: 0.5rem 1.1rem;
    transition: var(--transition);
    white-space: nowrap;
}

#mainNav .dropdown-item:hover {
    background-color: #f0f4f8;
    color: var(--primary);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 92vh;
    background-color: var(--primary-dark); /* fallback */
    background-image: url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 25, 47, 0.88) 0%,
        rgba(26, 60, 94, 0.72) 60%,
        rgba(26, 60, 94, 0.50) 100%
    );
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 520px;
}

.hero-badge {
    background: rgba(232,163,23,0.2);
    border: 1px solid rgba(232,163,23,0.5);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 500;
}

/* Hero Stats */
.hero-stats-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    min-width: 210px;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateX(-4px);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--accent);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.stat-num {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* ===================================
   BOOKING BAR
   =================================== */
.booking-bar-wrap {
    background: #fff;
    border-bottom: 1px solid #e8eef4;
}

.booking-bar .form-control,
.booking-bar .form-select {
    border-radius: 8px;
    border: 1.5px solid #dce3eb;
    font-size: 0.88rem;
    padding: 0.55rem 0.8rem;
    transition: var(--transition);
}

.booking-bar .form-control:focus,
.booking-bar .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,60,94,0.12);
}

/* ===================================
   FEATURES STRIP
   =================================== */
.features-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.feature-strip-item {
    color: #fff;
    padding: 0.5rem;
    transition: var(--transition);
}

.feature-strip-item i {
    opacity: 0.9;
    color: var(--accent);
}

.feature-strip-item .fw-semibold {
    font-size: 0.9rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-img-wrap {
    position: relative;
    padding-bottom: 30px;
    padding-right: 30px;
}

.main-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about-badge-float {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    min-width: 120px;
    border: 3px solid #fff;
}

.check-item {
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ===================================
   APARTMENT CARDS
   =================================== */
.apt-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: var(--transition);
}

.apt-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

.apt-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.apt-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apt-card:hover .apt-img-box img {
    transform: scale(1.07);
}

/* Fallback when image fails */
.apt-img-box.img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.apt-img-box.img-fallback::after {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: rgba(255,255,255,0.4);
}

.apt-size-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.apt-size-badge--large {
    background: var(--accent);
    color: #1a1a2e;
}

.apt-tag {
    background: var(--bg-light);
    border: 1px solid #dce3eb;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* CTA Card inside apartments grid */
.apt-cta-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg) !important;
    min-height: 300px;
    transition: var(--transition);
}

.apt-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   WHY CARDS
   =================================== */
.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.why-card:hover {
    border-color: rgba(26,60,94,0.1);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f0fa 0%, #d0e3f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--primary);
    color: #fff;
}

/* ===================================
   MESSE SECTION
   =================================== */
.messe-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
}

/* ===================================
   INTERNATIONAL / INFO CARDS
   =================================== */
.intl-card {
    transition: var(--transition);
    border: 1px solid rgba(26,60,94,0.08);
}

.intl-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   BOOKING FORM
   =================================== */
.booking-bg {
    background: linear-gradient(135deg, #eef2f7 0%, #e4edf8 100%);
}

.booking-card {
    border: 1px solid rgba(26,60,94,0.08);
}

.booking-card .form-control,
.booking-card .form-select,
.booking-card textarea {
    border: 1.5px solid #dce3eb;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.booking-card .form-control:focus,
.booking-card .form-select:focus,
.booking-card textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,60,94,0.1);
}

/* ===================================
   CONTACT
   =================================== */
.contact-box {
    transition: var(--transition);
    border: 1px solid rgba(26,60,94,0.08);
}

.contact-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--primary-dark);
}

/* WCAG AA kontrast: Bootstrap text-secondary (#6c757d) koyu footer arka planında yetersiz */
.footer .text-secondary,
.footer a.text-secondary {
    color: #8fa4bc !important;
}

.footer-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-heading {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    color: #8fa4bc;
    text-decoration: none;
    font-size: 0.87rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: #8fa4bc;
    font-size: 0.87rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.footer-contact a {
    color: #8fa4bc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent);
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fa4bc;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a2e;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ===================================
   FLOATING BUTTONS
   =================================== */
.float-buttons {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.12);
    color: #fff;
}

.float-whatsapp {
    background: #25D366;
}

.float-whatsapp:hover {
    background: #1ebe5d;
}

.float-call {
    background: var(--primary);
}

.float-call:hover {
    background: var(--primary-light);
}

/* Pulse animation for WhatsApp button – composited (transform + opacity only) */
.float-whatsapp {
    position: relative;
}
.float-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37,211,102,0.55);
    animation: pulse-green 2.5s infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulse-green {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ===================================
   SCROLL-IN ANIMATIONS
   =================================== */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   BOOKING.COM TRUST SECTION
   ========================================= */

/* Section background */
.bcom-section {
    background: linear-gradient(180deg, #f4f7fa 0%, #eef2f7 100%);
}

/* Booking.com Score Card */
.bcom-score-card {
    background: #003580;
    color: #fff;
}

.bcom-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
}
.bcom-logo-text span {
    color: #4fc3f7;
}

.bcom-score-num {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.bcom-score-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.bcom-stars {
    color: #ffd700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Category Score Bars */
.bcom-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bcom-cat-item {
    display: grid;
    grid-template-columns: 110px 1fr 36px;
    align-items: center;
    gap: 0.6rem;
}

.bcom-cat-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

.bcom-bar {
    height: 8px;
    background: #dce3eb;
    border-radius: 4px;
    overflow: hidden;
}

.bcom-bar-fill {
    height: 100%;
    background: #003580;
    border-radius: 4px;
    transition: width 1.2s ease;
}

.bcom-cat-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #003580;
    text-align: right;
}

/* CTA Box */
.bcom-cta-box {
    background: #fff;
    border: 2px solid #e8eef4;
    border-top: 4px solid #003580;
}

.bcom-cta-icon {
    color: #003580;
}

/* Booking.com Button */
.btn-bcom {
    background-color: #003580;
    border-color: #003580;
    color: #fff !important;
    transition: all 0.25s ease;
}
.btn-bcom:hover,
.btn-bcom:focus {
    background-color: #006CE4;
    border-color: #006CE4;
    color: #fff !important;
}
.btn-bcom:active {
    background-color: #002458 !important;
    border-color: #002458 !important;
}

/* Review Cards */
.bcom-review-card {
    background: #fff;
    border: 1px solid #e8eef4;
    border-top: 3px solid #003580;
    transition: var(--transition);
}
.bcom-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

.bcom-review-score {
    min-width: 48px;
    height: 48px;
    background: #003580;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bcom-review-score--10 {
    background: #006CE4;
}

/* Floating Booking.com button */
.float-booking {
    background: #003580;
}
.float-booking:hover {
    background: #006CE4;
}

/* RTL overrides */
body.rtl .bcom-cat-item {
    grid-template-columns: 36px 1fr 110px;
    direction: rtl;
}
body.rtl .bcom-cat-score { text-align: left; }

/* Responsive */
@media (max-width: 991px) {
    .bcom-cat-item { grid-template-columns: 90px 1fr 32px; }
}
@media (max-width: 767px) {
    .bcom-score-num { font-size: 3.5rem; }
    .bcom-cta-box   { border-top-width: 3px; }
}
@media (max-width: 575px) {
    .bcom-cat-item  { grid-template-columns: 80px 1fr 30px; gap: 0.4rem; }
    .bcom-cat-name  { font-size: 0.78rem; }
    .bcom-score-num { font-size: 3rem; }
}

/* =============================================================
   MOBILE FIRST – COMPREHENSIVE OVERHAUL
   Target: professional UX on 320–768px screens
   ============================================================= */

/* —— Prevent ANY element from causing horizontal overflow —— */
*, *::before, *::after {
    max-width: 100%;
}
img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}

/* —— Touch targets: all tappable elements ≥ 44px —— */
a, button, [role="button"], .btn, input, select, textarea {
    touch-action: manipulation;
}
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   TABLET – ≤ 991px
   ===================================================== */
@media (max-width: 991px) {
    /* Navbar */
    #mainNav .navbar-collapse {
        background: #fff;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        padding: 0.75rem 1rem 1rem;
        margin-top: 4px;
    }
    #mainNav .nav-link {
        padding: 0.65rem 0.5rem;
        border-bottom: 1px solid #f0f4f8;
        font-size: 0.95rem;
    }
    #mainNav .nav-link:last-child { border-bottom: none; }
    #mainNav .nav-item.dropdown { position: static; }
    #mainNav .dropdown-menu {
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 1rem;
        background: #f8fafd;
    }
    #mainNav .btn {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }
    .lang-switcher {
        padding: 0.5rem 0 0.25rem;
        flex-wrap: wrap;
        gap: 6px;
    }
    /* Hero */
    .hero-section {
        background-attachment: scroll; /* fixed bg causes scroll issues on iOS */
        min-height: 80vh;
    }
    .about-img-wrap { padding-right: 0; padding-bottom: 0; }
    .about-badge-float { position: static; margin-top: 1rem; border: none; }
}

/* =====================================================
   MOBILE – ≤ 767px
   ===================================================== */
@media (max-width: 767px) {

    /* —— Global —— */
    .section-spacing {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .row { margin-left: -8px; margin-right: -8px; }
    .row > * { padding-left: 8px; padding-right: 8px; }

    /* —— Info bar —— */
    .info-bar-contact:not(.info-bar-wa) { display: none; }
    .info-bar-text { font-size: 0.78rem; }

    /* —— Navbar —— */
    .navbar-logo { height: 56px; }

    /* —— Hero —— */
    .hero-section {
        min-height: auto;
        padding: 90px 0 56px;
    }
    .hero-title {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
    }
    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 10px;
        white-space: normal;
        text-align: center;
    }
    /* Hero CTA buttons: full-width stack */
    .hero-section .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    .hero-section .d-flex.flex-wrap.gap-3 .btn {
        width: 100%;
        font-size: 0.9rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* —— Booking bar —— */
    .booking-bar .row.g-2 > .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .booking-bar .row.g-2 > .col-md-3 { flex: 0 0 50%; max-width: 50%; }
    .booking-bar .form-label { font-size: 0.75rem; }
    .booking-bar .btn { width: 100%; margin-top: 4px; }

    /* —— Section headings —— */
    .section-heading { font-size: clamp(1.3rem, 5.5vw, 1.75rem); }
    .section-eyebrow { letter-spacing: 2px; font-size: 0.72rem; }

    /* —— About —— */
    .about-img-wrap { padding-right: 0 !important; padding-bottom: 0 !important; }
    .about-badge-float { position: static; display: inline-block; margin-top: 1rem; border: none; }
    .main-img { height: 260px; }

    /* —— Apartment cards —— */
    .apt-img-box { height: 200px; }
    .apt-tag { font-size: 0.72rem; padding: 2px 8px; }
    .apt-cta-card { min-height: 220px; padding: 1.5rem !important; }

    /* —— Why cards —— */
    .why-card { padding: 1.25rem 1rem; }
    .why-icon { width: 60px; height: 60px; font-size: 1.5rem; }

    /* —— Messe section —— */
    .messe-section .d-flex.flex-wrap.gap-3 .btn { width: 100%; text-align: center; }

    /* —— International cards —— */
    .intl-card { padding: 0.75rem; }

    /* —— Booking form —— */
    .booking-card { border-radius: var(--radius) !important; }
    .booking-card .row.g-3 > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .booking-card .form-control,
    .booking-card .form-select,
    .booking-card textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
        min-height: 48px;
        padding: 0.65rem 0.85rem;
    }
    .booking-card .d-flex.gap-3 { flex-direction: column; gap: 10px !important; }
    .booking-card .d-flex.gap-3 .btn { width: 100%; }

    /* —— Contact boxes —— */
    .contact-box { padding: 1.25rem !important; }
    .contact-icon-wrap { width: 50px; height: 50px; font-size: 1.1rem; }

    /* —— Footer —— */
    .footer-logo { height: 62px; }
    .footer-logo-card { padding: 12px 20px; border-radius: 14px; }
    .footer-bottom .col-md-6 { text-align: center !important; }

    /* —— Float buttons —— */
    .float-buttons { bottom: 18px; right: 18px; }
    .float-btn { width: 50px; height: 50px; font-size: 0.95rem; }
}

/* =====================================================
   SMALL PHONES – ≤ 575px
   ===================================================== */
@media (max-width: 575px) {

    .container { padding-left: 12px; padding-right: 12px; }

    /* —— Navbar —— */
    .navbar-logo { height: 50px; }
    .lang-btn { font-size: 0.62rem; padding: 2px 5px; }

    /* —— Hero —— */
    .hero-section { padding: 80px 0 48px; }
    .hero-title { font-size: clamp(1.55rem, 8vw, 2rem); }
    .hero-subtitle { font-size: 0.86rem; }
    .hero-badge { font-size: 0.68rem; }

    /* —— Booking bar: full-width inputs on tiny screens —— */
    .booking-bar .row.g-2 > .col-6,
    .booking-bar .row.g-2 > .col-md-3 { flex: 0 0 100%; max-width: 100%; }
    .booking-bar .form-control,
    .booking-bar .form-select {
        font-size: 16px;
        min-height: 46px;
    }

    /* —— About —— */
    .main-img { height: 230px; }

    /* —— Apartments —— */
    .apt-img-box { height: 185px; }
    .apt-size-badge { font-size: 0.72rem; }

    /* —— Section spacing —— */
    .section-spacing { padding-top: 2.5rem; padding-bottom: 2.5rem; }

    /* —— Float buttons —— */
    .float-buttons { bottom: 14px; right: 14px; gap: 10px; }
    .float-btn { width: 46px; height: 46px; }

    /* —— Int'l cards —— */
    .intl-card { padding: 0.75rem; }

    /* —— Booking.com score —— */
    .bcom-score-num { font-size: 2.8rem; }
    .bcom-cat-item { grid-template-columns: 78px 1fr 30px; gap: 0.35rem; }
    .bcom-cat-name { font-size: 0.75rem; }
}

/* =====================================================
   EXTRA-SMALL – ≤ 400px
   ===================================================== */
@media (max-width: 400px) {
    .lang-btn { font-size: 0.58rem; padding: 2px 4px; }
    .hero-title { font-size: 1.5rem; }
    .navbar-logo { height: 44px; }
    .hero-badge { display: none; }
    .stat-card { padding: 0.75rem 1rem; }
    .info-bar-wa span { display: none; }
    .info-bar-wa { padding: 5px 10px; }
    .float-btn { width: 44px; height: 44px; font-size: 0.88rem; }
}

/* =====================================================
   RTL + MOBILE
   ===================================================== */
body.rtl .about-img-wrap { padding-right: 0; padding-left: 0; }

@media (max-width: 767px) {
    body.rtl .float-buttons { right: unset; left: 14px; }
    body.rtl .hero-title { text-align: right; }
    body.rtl .booking-bar .form-label { text-align: right; }
    body.rtl #mainNav .navbar-collapse { text-align: right; }
}

/* =====================================================
   GDPR COOKIE CONSENT BANNER
   ===================================================== */
#gdprBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #fff;
    border-top: 3px solid var(--primary, #1a3c5e);
    box-shadow: 0 -4px 28px rgba(0,0,0,.14);
    padding: 14px 0;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
#gdprBanner.gdpr-visible  { transform: translateY(0); }
#gdprBanner.gdpr-hiding   { transform: translateY(100%); }

.gdpr-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.gdpr-text { flex: 1; min-width: 220px; }
.gdpr-title {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary, #1a3c5e);
    margin-bottom: 3px;
}
.gdpr-text p {
    font-size: .78rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}
.gdpr-text a {
    color: var(--primary, #1a3c5e);
    font-weight: 600;
}
.gdpr-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}
.gdpr-btn {
    padding: 9px 20px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--primary, #1a3c5e);
    transition: background .18s, color .18s;
    min-height: 42px;
    white-space: nowrap;
    line-height: 1.2;
}
.gdpr-btn--primary {
    background: var(--primary, #1a3c5e);
    color: #fff;
}
.gdpr-btn--primary:hover { background: #0f2840; border-color: #0f2840; }
.gdpr-btn--outline {
    background: transparent;
    color: var(--primary, #1a3c5e);
}
.gdpr-btn--outline:hover {
    background: var(--primary, #1a3c5e);
    color: #fff;
}
@media (max-width: 575px) {
    .gdpr-inner   { padding: 0 14px; gap: 12px; }
    .gdpr-actions { width: 100%; }
    .gdpr-btn     { flex: 1; text-align: center; }
}

/* ===================================
   AIRBNB BUTTON
   =================================== */
.btn-airbnb {
    background-color: #FF5A5F;
    border-color: #FF5A5F;
    color: #fff;
}
.btn-airbnb:hover,
.btn-airbnb:focus {
    background-color: #e0484d;
    border-color: #e0484d;
    color: #fff;
}

/* ===================================
   HERO BOOKING CHANNELS STRIP
   =================================== */
.hero-channels {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 0.75rem;
}
.hero-channel-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.hero-channel-pill:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.hero-channel-pill.hero-channel-airbnb {
    border-color: rgba(255,90,95,0.6);
    color: #ffb3b5;
}
.hero-channel-pill.hero-channel-airbnb:hover {
    background: rgba(255,90,95,0.25);
    border-color: #FF5A5F;
    color: #fff;
}
.hero-channel-pill.hero-channel-wa {
    border-color: rgba(37,211,102,0.6);
    color: #a8f0c1;
}
.hero-channel-pill.hero-channel-wa:hover {
    background: rgba(37,211,102,0.2);
    border-color: #25D366;
    color: #fff;
}

/* ===================================
   MULTI-PLATFORM REVIEWS SECTION
   =================================== */
.review-platform-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.review-platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}
.review-platform-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.review-platform-stars {
    color: #f4c430;
    font-size: 1.1rem;
    letter-spacing: 2px;
    line-height: 1;
}
.review-platform-icon { line-height: 1; }
.review-platform-name { font-weight: 600; }
.review-platform-count { color: var(--text-muted); }
.rp-google .review-platform-icon  { color: #4285F4; }
.rp-bcom   .review-platform-score { color: #003580; }
.rp-airbnb .review-platform-icon  { color: #FF5A5F; }
}
#gdprBanner[dir="rtl"] .gdpr-title svg { margin-right: 0; margin-left: 6px; }
#gdprBanner[dir="rtl"] .gdpr-text p   { text-align: right; }

/* ════════════════════════════════════════════════════════
   APARTMENT PHOTO GALLERY LIGHTBOX
   ════════════════════════════════════════════════════════ */

/* ── hover overlay button on apt card ── */
.apt-gallery-btn {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15,40,80,0.90) 0%, rgba(15,40,80,0.30) 70%, transparent 100%);
    color: #fff;
    border: none;
    padding: 32px 16px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    z-index: 2;
    width: 100%;
}
.apt-card:hover .apt-gallery-btn,
.apt-img-box:focus-within .apt-gallery-btn {
    opacity: 1;
    transform: translateY(0);
}
.apt-gallery-btn .gallery-count {
    background: rgba(232,163,23,0.85);
    color: #fff;
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 4px;
}

/* ── lightbox overlay ── */
#aptLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.96);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    outline: none;
}
#aptLightbox.lb-open { display: flex; }

/* header bar */
.lb-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    z-index: 4;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent);
    gap: 12px;
}
.lb-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-counter {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    white-space: nowrap;
}
.lb-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

/* main image area */
.lb-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 64px 72px 10px;
    overflow: hidden;
    min-height: 0;
}
#lbImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.8);
    user-select: none;
    transition: opacity 0.18s ease;
    display: block;
}
#lbImg.lb-fade { opacity: 0; }

/* nav arrows */
.lb-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50%;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
    z-index: 3;
}
.lb-arrow:hover { background: rgba(255,255,255,0.22); }
.lb-arrow--prev { left: 14px; }
.lb-arrow--next { right: 14px; }
.lb-arrow:disabled { opacity: 0.2; pointer-events: none; }

/* thumbnail strip */
.lb-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 20px 18px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.lb-thumbs::-webkit-scrollbar { height: 4px; }
.lb-thumbs::-webkit-scrollbar-track { background: transparent; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 2px; }

.lb-thumb {
    flex-shrink: 0;
    width: 74px; height: 52px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.48;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
    padding: 0; background: none;
}
.lb-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}
.lb-thumb.active { opacity: 1; border-color: #e8a317; }
.lb-thumb:hover  { opacity: 0.82; }

/* mobile adjustments */
@media (max-width: 576px) {
    .lb-main   { padding: 56px 46px 8px; }
    .lb-arrow  { width: 38px; height: 38px; font-size: 0.88rem; }
    .lb-arrow--prev { left: 5px; }
    .lb-arrow--next { right: 5px; }
    .lb-thumb  { width: 58px; height: 42px; }
}
