/* ==========================================================================
   StayNomix Design System — Premium Color Tokens
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* ── Brand Core ──────────────────────────────────────────────── */
    --midnight:        #0F1629;   /* Hero, nav dark sections         */
    --ocean:           #1E3A5F;   /* Gradient depth layers           */
    --amber:           #E8A020;   /* CTAs, highlights, star ratings  */
    --amber-dark:      #C9A227;   /* Pressed / active CTA state      */
    --champagne:       #F5EDD4;   /* Warm hover states, dividers     */
    --cloud-white:     #FAFAF8;   /* Backgrounds, card surfaces      */
    --confirm-green:   #16A34A;   /* Success states                  */
    --muted-text:      #6B7280;   /* Secondary copy — WCAG AA safe   */

    /* ── Backward-compatible Mappings ───────────────────────────── */
    --primary-color:   var(--amber);
    --primary-gradient: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
    --primary-dark:    var(--amber-dark);

    --secondary-color: #FF7D41;

    --bg-main:         var(--cloud-white);
    --bg-white:        #ffffff;

    --text-dark:       #1A1A1A;
    --text-main:       #3D3D3D;
    --text-muted:      var(--muted-text);  /* was #8c8c8c — this passes WCAG AA */

    --border-color:    #EBEBEB;

    --success:         var(--confirm-green);  /* was #1EBEA5 */
    --danger:          #ef4444;

    --shadow-sm:       0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md:       0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg:       0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-premium:  0 30px 60px rgba(0, 0, 0, 0.12);

    --radius-sm:   10px;
    --radius-md:   14px;
    --radius-lg:   20px;
    --radius-pill: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; border: 2px solid #f1f1f1; }
::-webkit-scrollbar-thumb:hover { background: #999; }

html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input, button, select, textarea {
    font-family: 'Manrope', sans-serif;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

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

.text-dark {
    color: var(--text-dark);
}

.text-success {
    color: var(--success);
}

.text-white {
    color: var(--bg-white);
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.bg-main {
    background-color: var(--bg-main);
}

.bg-white {
    background-color: var(--bg-white);
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations */
.opacity-0 {
    opacity: 0;
    transform: translateY(20px);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

/* Dayuse Pill Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    background-color: var(--bg-main);
}

.btn-text {
    background-color: transparent;
    color: var(--text-dark);
    padding: 0.625rem 1rem;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Dayuse Sticky Navbar */
.navbar {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-links,
.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-muted);
}

/* User Menu Pill */
.user-menu-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.5rem 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-pill:hover {
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links,
    .nav-auth {
        display: none;
    }
}

/* Dayuse Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Subtle dark overlay so text pops */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: white;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dayuse Pill Search Bar */
.search-pill-container {
    background: var(--bg-white);
    border-radius: var(--radius-pill);
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.search-pill-form {
    display: flex;
    width: 100%;
    align-items: center;
}

.search-segment {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
}

.search-segment:last-of-type {
    border-right: none;
}

.search-segment:hover {
    background: var(--bg-main);
    border-radius: var(--radius-pill);
}

.search-icon {
    color: var(--text-dark);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.search-inputs {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.search-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
    width: 100%;
    font-family: inherit;
}

.search-submit {
    background: var(--primary-gradient);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.search-submit i {
    font-size: 1.2rem;
    color: #000;
}

.search-submit:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-pill-container {
        border-radius: var(--radius-lg);
        flex-direction: column;
        padding: 1rem;
    }

    .search-pill-form {
        flex-direction: column;
    }

    .search-segment {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0.5rem;
        width: 100%;
    }

    .search-segment:last-of-type {
        border-bottom: none;
    }

    .search-submit {
        width: 100%;
        border-radius: var(--radius-pill);
        margin-top: 1rem;
        margin-left: 0;
    }
}

/* Dayuse Cards */
.card-premium {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
}

.card-premium:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.card-img-container {
    position: relative;
    padding-top: 66%;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.badge-review {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hotel-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.hotel-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.cancellation-text {
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Feature Icons Grid */
.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    color: var(--text-dark);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Dayuse Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.footer-heading {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-main);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MiStay Additional Layout & Components
   ========================================================================== */

/* Search result / booking layout grids */
.layout-sidebar-right {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .layout-sidebar-right {
        grid-template-columns: 1fr;
    }
}

.layout-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .layout-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Hotel/search result sidebar */
.hotel-details {
    min-width: 0;
}

/* Booking sidebar */
.booking-sidebar {
    position: sticky;
    top: 90px;
}

.booking-summary {
    position: sticky;
    top: 90px;
}

/* Search result sidebar */
.filters-sidebar {}

.results-container {
    min-width: 0;
}

/* Common alert */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.alert-danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--bg-main) !important;
}

.bg-primary-light {
    background-color: #FFF3E0;
}

.text-danger {
    color: #EF4444;
}

/* Buttons extra */
.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-primary-light {
    background: #FFF3E0;
    color: var(--primary-dark);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary-light:hover {
    background: var(--primary-color);
    color: #000;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg-white);
}

.form-control:focus {
    border-color: var(--primary-color);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1rem;
}

/* Search result card heights */
.search-result-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.search-result-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.search-result-img {
    height: 200px;
    overflow: hidden;
}

/* Pagination */
.pagination {
    gap: 4px;
}

.page-item .page-link {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

/* Utility extras */
.gap-1 {
    gap: 0.25rem;
}

.align-end {
    align-items: flex-end;
}

.justify-end {
    justify-content: flex-end;
}

.mt-auto {
    margin-top: auto;
}

.bg-light {
    background-color: var(--bg-main);
}

.position-relative {
    position: relative;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-success {
    color: var(--success) !important;
}

.border-color {
    border-color: var(--border-color);
}

.w-full {
    width: 100% !important;
}

/* ── Admin Pagination (Bootstrap 5 compatible) ──────────────────────────── */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.625rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    font-family: 'Inter', 'Manrope', sans-serif;
}

.pagination .page-item .page-link:hover {
    background: #f1f5f9;
    border-color: #0A6E6E;
    color: #0A6E6E;
}

.pagination .page-item.active .page-link {
    background: #0A6E6E;
    border-color: #0A6E6E;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(10,110,110,0.25);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f8fafc;
    color: #94a3b8;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 0.9rem;
}