/* ========================================
   ALMAZ HOTEL — MAIN STYLESHEET
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --gold: #c9a25d;
    --gold-dark: #a8823f;
    --charcoal: #1a1a1a;
    --charcoal-light: #2b2b2b;
    --cream: #faf7f1;
    --off-white: #f4f1ea;
    --text-dark: #2b2925;
    --text-muted: #7a766c;
    --success: #2e7d4f;
    --danger: #c0392b;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.65;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
    color: var(--charcoal);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
}

.section-tag {
    display: inline-block;
    color: var(--gold-dark);
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 18px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 50px;
    font-size: 16px;
}

.text-center {
    text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 15px 34px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all .3s ease;
}

.btn-primary {
    background: var(--gold);
    color: #fff;
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201,162,93,.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--charcoal);
}

.btn-outline-dark {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}

.btn-outline-dark:hover {
    background: var(--charcoal);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 12px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

/* ---------- Navbar ---------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26,26,26,.85);
    backdrop-filter: blur(8px);
    padding: 18px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.navbar-brand span {
    color: var(--gold);
}

.navbar-links {
    display: flex;
    gap: 34px;
    align-items: center;
}

.navbar-links a {
    color: #f0ece2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .3px;
    transition: color .25s;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--gold);
}

.navbar-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.navbar-actions .btn {
    padding: 10px 22px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 62px;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 22px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero p {
    font-size: 18px;
    color: #e8e4da;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 18px;
}

/* ---------- Search / Availability Widget ---------- */

.search-widget {
    position: relative;
    z-index: 3;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 28px;
    margin-top: -60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.search-widget .field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.search-widget input,
.search-widget select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e4e0d6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

/* ---------- Room Cards ---------- */

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.room-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.14);
}

.room-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.room-card:hover .room-card-image img {
    transform: scale(1.08);
}

.room-card-price {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--charcoal);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.room-card-price span {
    color: var(--gold);
}

.room-card-body {
    padding: 26px;
}

.room-card-body h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.room-card-body p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.room-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.room-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.availability-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.availability-badge.available {
    background: #e3f5e9;
    color: var(--success);
}

.availability-badge.full {
    background: #fbe9e7;
    color: var(--danger);
}

/* ---------- Amenities / Icons row ---------- */

.amenities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amenity-pill {
    background: var(--off-white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-dark);
}

/* ---------- Feature / About blocks ---------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--gold-dark);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-section img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ---------- Testimonials ---------- */

.testimonial-card {
    background: #fff;
    padding: 34px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stars {
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

/* ---------- Gallery ---------- */

.gallery-grid {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
    color: #fff;
    padding: 30px 16px 14px;
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
    background: var(--charcoal);
    color: #cfcabf;
    padding: 70px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand span {
    color: var(--gold);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #cfcabf;
    font-size: 14px;
    transition: color .25s;
}

.footer ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #3a3a3a;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #8a8578;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .25s;
}

.social-icons a:hover {
    background: var(--gold);
}

/* ---------- Forms (auth, booking, contact) ---------- */

.form-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    padding: 140px 20px 60px;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 44px;
    width: 100%;
    max-width: 460px;
}

.form-card.wide {
    max-width: 760px;
}

.form-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.form-card > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e4e0d6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background: #fdfcfa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-footer-link {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-footer-link a {
    color: var(--gold-dark);
    font-weight: 600;
}

.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert p {
    margin: 3px 0;
}

.alert-error {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: var(--danger);
}

.alert-success {
    background: #eafaf1;
    border: 1px solid #a3d9b1;
    color: var(--success);
}

/* ---------- Price Summary Box ---------- */

.price-summary {
    background: var(--off-white);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.price-row.total {
    border-top: 1px solid #ddd6c4;
    padding-top: 12px;
    margin-top: 6px;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-dark);
}

.price-row.total span:last-child {
    color: var(--gold-dark);
}

/* ---------- Booking status badges ---------- */

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-pending { background: #fdf3dc; color: #a17408; }
.badge-confirmed { background: #dbeeff; color: #1a5fa8; }
.badge-checkedin { background: #e1f3e3; color: #237a3d; }
.badge-checkedout { background: #e9e6df; color: #565248; }
.badge-cancelled { background: #fbe4e2; color: var(--danger); }
.badge-paid { background: #e3f5e9; color: var(--success); }
.badge-unpaid { background: #fdecea; color: var(--danger); }

/* ---------- Generic content page (about, faq) ---------- */

.page-hero {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20,20,20,.6);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: #fff;
    font-size: 42px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 26px 30px;
    margin-bottom: 16px;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Dashboard (customer) ---------- */

.dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    padding-top: 90px;
    background: var(--off-white);
}

.dash-sidebar {
    background: var(--charcoal);
    padding: 30px 20px;
}

.dash-sidebar a {
    display: block;
    color: #d9d5c9;
    padding: 13px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 6px;
    transition: background .25s;
}

.dash-sidebar a:hover,
.dash-sidebar a.active {
    background: rgba(201,162,93,.15);
    color: var(--gold);
}

.dash-main {
    padding: 40px;
}

.booking-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 20px;
    align-items: center;
}

.booking-card img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 26px;
}

.stat-card .value {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    color: var(--charcoal);
    margin: 8px 0;
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.stat-card.accent .value { color: var(--gold-dark); }

/* ---------- Data tables (admin) ---------- */

.table-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--charcoal);
    color: #fff;
}

.data-table th,
.data-table td {
    padding: 15px 18px;
    text-align: left;
    font-size: 14px;
}

.data-table tbody tr:nth-child(even) {
    background: #faf8f3;
}

.data-table tbody tr:hover {
    background: #f4efe3;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 28px;
}

/* ---------- Calendar view ---------- */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    background: #fff;
    border-radius: 6px;
    min-height: 90px;
    padding: 8px;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.calendar-day .day-num {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.calendar-booking {
    background: var(--gold);
    color: #fff;
    border-radius: 4px;
    padding: 3px 6px;
    margin-bottom: 3px;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Responsive ---------- */

@media (max-width: 968px) {
    .navbar-links { display: none; }
    .hero h1 { font-size: 40px; }
    .search-widget { grid-template-columns: 1fr 1fr; }
    .room-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { columns: 1; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { display: flex; overflow-x: auto; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
}
