/* =============================================
   SÉJOUR URBAIN — Global Stylesheet
   ============================================= */

:root {
    --primary:       #1a3a4a;
    --primary-light: #2c5f7a;
    --accent:        #e8a845;
    --accent-dark:   #d4941f;
    --light-bg:      #f8f5f0;
    --text-main:     #2d2d2d;
    --text-muted:    #6c757d;
    --border:        #e2ddd8;
    --card-shadow:   0 4px 20px rgba(0,0,0,.08);
    --card-shadow-hover: 0 12px 40px rgba(0,0,0,.15);
    --radius:        12px;
    --radius-sm:     8px;
    --transition:    0.25s ease;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: #ffffff;
    font-size: 15px;
    line-height: 1.65;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--primary);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ---- Navbar ---- */
.navbar {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: -.3px;
}
.navbar-brand i { color: var(--accent); margin-right: 6px; }

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    padding: .4rem 1rem !important;
    transition: color var(--transition);
}
.nav-link:hover { color: var(--accent-dark) !important; }

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: .55rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;
    transition: background var(--transition), transform .15s;
}
.btn-primary-custom:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #0f2634 50%, #1a3a4a 100%);
    overflow: hidden;
}
.hero-section::before {
    content:'';
    position:absolute; inset:0;
    background: url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=1600&q=60') center/cover no-repeat;
    opacity: .18;
}
.hero-overlay {
    position:absolute; inset:0;
    background: linear-gradient(to bottom, rgba(26,58,74,.7) 0%, rgba(26,58,74,.5) 100%);
}
.hero-content { position:relative; z-index:2; padding: 4rem 0 2rem; }
.hero-tagline {
    display: inline-block;
    background: rgba(232,168,69,.2);
    border: 1px solid rgba(232,168,69,.4);
    color: var(--accent);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero-highlight { color: var(--accent); }
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}
.hero-actions .btn-outline-light { border-radius: var(--radius-sm); padding: .55rem 1.4rem; font-weight: 600; }

.stat-item {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    padding: .75rem 1.5rem;
    text-align: center;
}
.stat-number { display:block; font-size: 1.6rem; font-weight: 700; color: var(--accent); font-family: 'Playfair Display', serif; }
.stat-label  { display:block; font-size: .75rem; color: rgba(255,255,255,.7); text-transform:uppercase; letter-spacing:.06em; margin-top:.1rem; }

.hero-scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 3;
}
.hero-scroll-indicator a {
    color: rgba(255,255,255,.5);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    display: block;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ---- Sections ---- */
.section-padded { padding: 5rem 0; }
.bg-light-custom { background: var(--light-bg); }

.section-tag {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    font-size: 1rem;
}
.section-subheading {
    font-size: 1.15rem;
    color: var(--primary);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    margin-bottom: 1.25rem;
}

/* ---- Property Cards ---- */
.property-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.card-img-wrapper { position:relative; overflow:hidden; }
.property-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}
.property-card:hover .property-img { transform: scale(1.04); }

.card-img-overlay-badge {
    position: absolute;
    top: .75rem; right: .75rem;
}
.price-badge {
    background: var(--primary);
    color: #fff;
    padding: .3rem .75rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
}
.price-badge small { font-weight: 400; opacity:.8; font-size:.75rem; }

.property-location {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .3rem;
}
.property-location i { color: var(--accent); }
.card-title { font-size: 1.1rem; margin-bottom: .5rem; }

.property-features { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.75rem; }
.feature-chip {
    background: var(--light-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: .78rem;
    padding: .2rem .6rem;
    border-radius: 50px;
    font-weight: 500;
    white-space: nowrap;
}
.feature-chip i { color: var(--primary); font-size: .7rem; }

/* ---- Features Section ---- */
.feature-box {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition);
}
.feature-box:hover { transform: translateY(-4px); }
.feature-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.feature-box h5 { font-size: 1rem; margin-bottom: .5rem; }

/* ---- CTA ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}
.page-header .breadcrumb-item a { color: rgba(255,255,255,.7); font-size:.85rem; }
.page-header .breadcrumb-item.active { color: #fff; font-size:.85rem; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.page-title { font-size: 2rem; color: #fff; margin: .5rem 0 .3rem; }
.page-subtitle { color: rgba(255,255,255,.7); margin-bottom: 0; }

/* ---- Property Detail ---- */
.property-detail-title { font-size: 1.8rem; }
.price-display { font-size: 1.6rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.spec-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    padding: .3rem .8rem;
    background: var(--light-bg);
    border-radius: 50px;
}
.spec-item i { color: var(--accent); }

.amenities-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.amenity-item {
    display: flex;
    align-items: center;
    font-size: .85rem;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .3rem .9rem;
}
.amenity-item i { color: #28a745; font-size: .8rem; }

/* ---- Calendar ---- */
.calendar-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}
#calendar { max-width: 100%; }
.fc-toolbar-title { font-family: 'Playfair Display', serif !important; font-size: 1rem !important; }
.fc-button-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.fc-button-primary:hover { background-color: var(--primary-light) !important; }
.fc-daygrid-event { border-radius: 4px !important; }
.fc-highlight { background: rgba(232,168,69,.25) !important; }

.calendar-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); }
.legend-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.legend-available { background: #d4edda; border: 1px solid #28a745; }
.legend-booked    { background: #f8d7da; border: 1px solid #dc3545; }
.legend-selected  { background: rgba(232,168,69,.4); border: 1px solid var(--accent); }

/* ---- Booking Sidebar ---- */
.booking-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow-hover);
    overflow: hidden;
}
.booking-card-header {
    background: var(--primary);
    color: #fff;
    padding: 1.25rem 1.5rem;
}
.booking-card-header h4 { color: #fff; font-size: 1.1rem; margin: 0; }
.price-badge-sidebar {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: .85rem;
    padding: .25rem .75rem;
    border-radius: 50px;
    white-space: nowrap;
}
.booking-card-body { padding: 1.5rem; }

.form-label { color: var(--text-main); margin-bottom: .3rem; }
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border);
    font-size: .9rem;
    padding: .5rem .8rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(26,58,74,.15);
}

.price-summary {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    font-size: .9rem;
}
.gocardless-info {
    background: rgba(40,167,69,.07);
    border: 1px solid rgba(40,167,69,.2);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .85rem;
    color: var(--text-main);
}

/* ---- Confirmation ---- */
.confirmation-card {
    background: linear-gradient(135deg, #e8f8ef 0%, #d4edda 100%);
    border: 1px solid #b8ddc5;
    border-radius: var(--radius);
    padding: 2.5rem;
}
.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}
.confirmation-title { font-size: 2rem; color: #155724; margin-bottom: .75rem; }
.confirmation-subtitle { color: #555; font-size: 1rem; margin: 0; }

.booking-summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}
.summary-property {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
}
.summary-property-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.detail-item {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
}
.detail-label { display: block; font-size: .75rem; color: var(--text-muted); margin-bottom: .2rem; }
.detail-value { display: block; font-weight: 600; font-size: .95rem; }

.total-amount-box {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}
.total-price { font-size: 1.4rem; font-weight: 700; font-family: 'Playfair Display', serif; }

.booking-ref-card {
    background: var(--light-bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}
.booking-ref {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .05em;
}

/* ---- Footer ---- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 2rem;
    margin-top: 0;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.footer-brand i { color: var(--accent); }
.footer-heading { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.5rem; }
.footer .text-muted { color: rgba(255,255,255,.5) !important; }
.footer a.text-muted { color: rgba(255,255,255,.5) !important; }
.footer a.text-muted:hover { color: var(--accent) !important; }

.social-links { display: flex; gap: .75rem; }
.social-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    transition: all var(--transition);
    font-size: .95rem;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.badge-payment {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    padding: .3rem .75rem;
    border-radius: 50px;
}

/* ---- Carousel & Gallery ---- */
.carousel-photo {
    height: 420px;
    object-fit: cover;
    width: 100%;
}
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,.4);
    border-radius: 50%;
    padding: 1.2rem;
    background-size: 50%;
}
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.7);
    border: none;
}
.carousel-indicators .active {
    background-color: var(--accent);
}

.gallery-thumbs {
    display: flex;
    gap: .5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .25rem;
}
.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color var(--transition), opacity var(--transition);
    opacity: .65;
}
.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--accent);
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .hero-actions .btn { display: block; width: 100%; margin-bottom: .5rem; }
    .hero-actions .me-3 { margin-right: 0 !important; }
    .property-specs { gap: .5rem; }
}
