/* ============================================================
   dashboard.css — Shared dashboard layout styles
   Used by customer, owner, staff, and admin dashboards
   ============================================================ */

/* ── DASHBOARD NAV (top bar inside dashboard) ── */
.dash-topbar {
  position: fixed; top: 0; left: 240px; right: 0; z-index: 99;
  height: 64px;
  background: rgba(238, 243, 249, 0.95);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  transition: left var(--t);
}
.menu-toggle{
    display:none;
}
@media (max-width:900px){

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
        width:42px;
        height:42px;
        border:none;
        background:#fff;
        border-radius:10px;
        cursor:pointer;
        font-size:24px;
        margin-right:15px;
        box-shadow:0 2px 8px rgba(0,0,0,.08);
    }

    .sidebar-collapse-btn{
        display:none;
    }

}
@media (max-width:900px){

    .sidebar{
        position:fixed;
        top:0;
        left:0;

        width:240px;
        height:100vh;

        transform:translateX(-100%);
        transition:transform .3s ease;

        z-index:1001;
    }

    .sidebar.open{
        transform:translateX(0);
    }

}

@media (max-width:900px){

    .sidebar-overlay{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        display:none;
        z-index:999;
    }

    .sidebar-overlay.show{
        display:block;
    }

}

/* ── DESKTOP SIDEBAR COLLAPSE (>900px only) ── */
@media (min-width: 901px) {

    .sidebar-collapse-btn {
        position: absolute;
        top: 66px;
        right: -13px;
        width: 26px; height: 26px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--white);
        color: var(--ocean-deep);
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        padding: 0;
        z-index: 101;
    }
    .sidebar-collapse-btn svg { width: 14px; height: 14px; transition: transform var(--t); }

    .sidebar.collapsed { width: 72px; }

    .sidebar.collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }

    .sidebar.collapsed .sidebar-brand { justify-content: center; padding: 22px 0 18px; }
    .sidebar.collapsed .sidebar-brand > div { display: none; }
    .sidebar.collapsed .sidebar-user { justify-content: center; padding: 14px 0; }
    .sidebar.collapsed .sidebar-user-info { display: none; }
    .sidebar.collapsed .sidebar-section-label { display: none; }
    .sidebar.collapsed .sidebar-tagline-card { display: none; }

    .sidebar.collapsed .sidebar-item,
    .sidebar.collapsed .sidebar-logout {
        justify-content: center;
        padding-left: 0; padding-right: 0;
        gap: 0;
        font-size: 0;
    }

    .sidebar.collapsed ~ .main-content { margin-left: 72px; }
    .sidebar.collapsed ~ .dash-topbar   { left: 72px; }

}

.dash-topbar-title {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--ocean-deep);
}
.dash-topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.dash-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--tide); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.dash-user-name { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.dash-user-role { font-size: 0.68rem; color: var(--muted); display: block; }

/* ── PROFILE MENU (positioned the same way as the notifications dropdown) ── */

.user-menu { position: relative; }

.user-menu-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 6px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.user-menu.open .user-menu-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.user-menu-header {
  padding: 10px 10px 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.user-menu-header .dash-user-name { font-weight: 600; }

.user-menu-divider { height: 1px; background: var(--border); margin: 6px 4px; }

.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border-radius: var(--r-sm);
  background: none; border: none; text-align: left;
  font-family: var(--font-body); font-size: 0.86rem; color: var(--ink);
  cursor: pointer; transition: background var(--t);
}
.user-menu-item:hover { background: var(--sand); }
.user-menu-item svg { flex-shrink: 0; color: var(--muted); }
.user-menu-item-danger { color: var(--coral); }
.user-menu-item-danger svg { color: var(--coral); }
.notif-btn {
  position: relative; background: var(--card);
  border: 1px solid var(--border); border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: all var(--t);
  color: var(--muted);
}
.notif-btn:hover { border-color: var(--ocean-light); color: var(--ocean); }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); border: 1.5px solid var(--sand);
}

.notif-wrap { position: relative; }

.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 300px; max-height: 360px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.notif-wrap.open .notif-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.notif-dropdown-header {
  padding: 12px 14px; font-weight: 600; font-size: 0.85rem;
  color: var(--ink); border-bottom: 1px solid var(--border);
}

.notif-list { padding: 6px; }

.notif-item {
  display: flex; gap: 10px; padding: 10px; border-radius: var(--r-sm);
}
.notif-item:hover { background: var(--sand); }

.notif-item-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--seafoam); color: var(--ocean);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-item-icon svg { width: 16px; height: 16px; }

.notif-item-text { font-size: 0.82rem; color: var(--ink); line-height: 1.4; }

/* ── SECTION PANELS ── */
.dash-section { display: none; }
.dash-section.active { display: block; }

/* ── CONTENT GRID ── */
.content-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.content-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }

/* ── SEARCH/FILTER BAR ── */
.filter-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
  position: sticky; top: 64px; z-index: 50;
  background: var(--sand);
  padding: 12px 0;
}
.filter-bar .form-input {
  max-width: 240px;
  border-radius: 999px;
}
.filter-bar select.form-input {
  max-width: 180px;
}
/* Labeled From/to date pair inside a filter bar */
.filter-date-range {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted);
}
.filter-bar .filter-date-range .form-input { width: 160px; max-width: 160px; }

/* Collapsible filters (phones only): a one-row "Filters" button that folds the
   filter bar away so results get the screen. Desktop never shows the button. */
.filter-toggle { display: none; }
@media (max-width: 640px) {
  .filter-panel {
    position: sticky; top: 72px; z-index: 50;
    background: #ffffff;
    padding: 10px 0;
    margin-bottom: 14px;
  }
  .filter-panel .filter-bar { position: static; padding: 12px 0 4px; margin-bottom: 0; background: none; }
  .filter-panel.collapsed .filter-bar,
  .filter-panel.collapsed .form-hint { display: none; }
  .filter-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border); border-radius: 999px;
    background: var(--sand);
    font: inherit; font-weight: 600; color: var(--ocean-deep);
    cursor: pointer; text-align: left;
  }
  .filter-toggle:focus-visible { outline: 2px solid var(--ocean-light); outline-offset: 2px; }
  .filter-toggle-summary {
    flex: 1; min-width: 0;
    font-weight: 400; font-size: 0.85rem; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .filter-toggle-chevron { transition: transform 0.2s; }
  .filter-toggle[aria-expanded="true"] .filter-toggle-chevron { transform: rotate(180deg); }
  /* Expanded on a phone: each filter takes the full row instead of a ragged wrap */
  .filter-panel .filter-bar > *,
  .filter-panel .filter-bar .form-input,
  .filter-panel .filter-bar select.form-input { max-width: none; width: 100%; }
  .filter-panel .filter-bar .filter-date-range .form-input { flex: 1; width: auto; max-width: none; }
  .filter-panel .filter-bar input[type="text"] { min-width: 0 !important; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .filter-toggle-chevron { transition: none; }
}
.search-input-wrap {
  position: relative; flex: 1; max-width: 300px;
}
.search-input-wrap .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.9rem; pointer-events: none;
}
.search-input-wrap .form-input { padding-left: 36px; }

/* ── COTTAGE GRID (customer browse) ── */
.cottage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px; margin-bottom: 28px;
}
.cottage-card {
  background: var(--card); border-radius: var(--r-md);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.28s ease;
  cursor: pointer;
}
.cottage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ocean-light); }
.cottage-card-img {
  height: 180px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--seafoam) 0%, var(--sky-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.cottage-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.cottage-available-badge {
  position: absolute; top: 10px; right: 10px;
}
.cottage-card-body { padding: 16px 18px; }
.cottage-card-name {
  font-family: var(--font-body);
  font-size: 1.15rem; color: var(--ocean-deep); margin-bottom: 4px;
}
.cottage-card-meta {
  font-size: 0.78rem; color: var(--muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.cottage-card-price {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--ocean); font-weight: 600;
}
.cottage-card-price span { font-size: 0.75rem; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.cottage-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* ── BOOKING FORM ── */
.booking-form-card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  max-width: 660px; box-shadow: var(--shadow-sm);
}
.booking-form-header {
  padding: 24px 28px; background: var(--ocean-deep); color: var(--white);
}
.booking-form-title {
  font-family: var(--font-display);
  font-size: 1.5rem; margin-bottom: 4px;
}
.booking-form-sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.booking-form-body { padding: 28px; }
.booking-summary-box {
  background: var(--seafoam); border-radius: var(--r-md);
  padding: 18px 20px; margin-top: 20px;
  border: 1px solid var(--border);
}
.booking-summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.86rem; padding: 6px 0;
  border-bottom: 1px solid rgba(197, 213, 232, 0.6);
  color: var(--ink);
}
.booking-summary-row:last-child { border-bottom: none; }
.booking-summary-row.total {
  font-weight: 600; font-family: var(--font-display);
  font-size: 1.05rem; color: var(--ocean-deep);
  border-top: 1.5px solid var(--border); padding-top: 10px;
}

/* ── CALENDAR VIEW ── */
.calendar-wrap {
  background: var(--card); border-radius: var(--r-md);
  border: 1px solid var(--border); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-month {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ocean-deep);
}
.calendar-nav-btn {
  background: var(--seafoam); border: none; border-radius: var(--r-sm);
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ocean); transition: all var(--t); font-size: 0.9rem;
}
.calendar-nav-btn:hover { background: var(--ocean); color: white; }
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.calendar-day-label {
  text-align: center; font-size: 0.68rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; padding: 6px 0;
}
.calendar-day {
  text-align: center; padding: 8px 4px; border-radius: 6px;
  font-size: 0.82rem; cursor: pointer; transition: all var(--t);
  min-height: 36px; display: flex; align-items: center; justify-content: center;
}
.calendar-day:hover { background: var(--seafoam); color: var(--ocean); }
.calendar-day.booked { background: #fee2e2; color: #991b1b; cursor: not-allowed; }
.calendar-day.blocked { background: #e2e8f0; color: #334155; cursor: not-allowed; }
.calendar-day.available { background: #dbeafe; color: #1e3a8a; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--ocean); font-weight: 700; }
.calendar-day.today.available { background: var(--ocean); color: white; }
.calendar-day.selected { background: var(--tide); color: var(--ocean-deep); }
.calendar-day.other-month { color: var(--border); }

/* ── INCOME CHART PLACEHOLDER ── */
.chart-placeholder {
  background: var(--seafoam); border-radius: var(--r-md);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: var(--muted); font-size: 0.88rem;
  border: 1px dashed var(--border);
}

/* ── PROFILE PHOTO UPLOAD ── */
.photo-upload-area {
  border: 2px dashed var(--border); border-radius: var(--r-md);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all var(--t); background: var(--seafoam);
  position: relative;
}
.photo-upload-area:hover { border-color: var(--ocean-light); background: rgba(230, 240, 250, 0.8); }
.photo-upload-icon { font-size: 2rem; color: var(--muted); margin-bottom: 8px; }
.photo-upload-text { font-size: 0.82rem; color: var(--muted); }
.photo-upload-area input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}

/* ── APPROVAL CARD (admin) ── */
.approval-card {
  background: var(--card); border-radius: var(--r-md);
  border: 1px solid var(--border); padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 14px;
  transition: box-shadow var(--t);
}
.approval-card:hover { box-shadow: var(--shadow-md); }
.approval-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--seafoam); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.approval-info { flex: 1; }
.approval-name { font-weight: 600; color: var(--ocean-deep); font-size: 0.95rem; margin-bottom: 3px; }
.approval-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.approval-actions { display: flex; gap: 8px; }

/* ── PRICING TIER CARDS ── */
.tier-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; margin-bottom: 24px;
}
.tier-card {
  background: var(--card); border-radius: var(--r-md);
  border: 1.5px solid var(--border); padding: 22px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.tier-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--ocean-light);
}
.tier-card.basic::before  { background: var(--sky); }
.tier-card.standard::before { background: var(--ocean-light); }
.tier-card.premium::before  { background: var(--tide); }
.tier-name {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--ocean-deep); margin-bottom: 6px;
}
.tier-price {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--ocean); margin-bottom: 12px; line-height: 1;
}
.tier-price span { font-size: 0.8rem; color: var(--muted); font-family: var(--font-body); }
.tier-features { list-style: none; margin-bottom: 16px; }
.tier-features li {
  font-size: 0.8rem; color: var(--muted); padding: 4px 0;
  display: flex; align-items: center; gap: 6px;
}
.tier-features li::before { content: '✓'; color: var(--ocean-light); font-weight: 700; }

/* ── REPORT SECTION ── */
.report-period-tabs {
  display: flex; gap: 6px; margin-bottom: 20px;
}
.report-period-tab {
  padding: 7px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); font-size: 0.8rem; cursor: pointer;
  font-family: var(--font-body); transition: all var(--t);
}
.report-period-tab.active {
  background: var(--ocean); color: white; border-color: var(--ocean);
}

@media (max-width: 768px) {
  .dash-topbar { left: 0; }
  .content-grid-2, .content-grid-3 { grid-template-columns: 1fr; }
  .cottage-grid { grid-template-columns: 1fr; }
}

@media (max-width:900px){

    .dash-topbar{
        left:0;
        padding:0 16px;
    }

    .main-content{
        margin-left:0;
        width:100%;
    }

    .dash-user-role{
        max-width:120px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

}

@media (max-width:480px){
}
.modal-overlay{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.55);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:3000;

}

.modal-overlay.show{

    display:flex;

}

.modal-box{

    width:650px;
    max-width:95%;

    background:white;

    border-radius:15px;

    overflow:hidden;

    animation:popup .25s;

}

.modal-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px;

    border-bottom:1px solid #ddd;

}

.modal-body{

    padding:20px;

    max-height:70vh;

    overflow:auto;

}

.modal-footer{

    padding:20px;

    display:flex;

    justify-content:flex-end;

    gap:10px;

    border-top:1px solid #ddd;

}

.close-btn{

    border:none;
    background:none;
    cursor:pointer;

    font-size:22px;

}

@keyframes popup{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}
/* ── MY PROFILE (redesigned) ── */

.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.profile-main, .profile-side {
  display: flex; flex-direction: column; gap: 20px;
}

.profile-summary-top {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  margin-top: -50px;
  margin-bottom: 18px;
}

.profile-avatar-wrap { position: relative; flex-shrink: 0; }

.profile-summary-card { position: relative; overflow: hidden; }
.profile-summary-card .card-body { position: relative; z-index: 1; padding-top: 86px; }

.profile-banner {
  position: absolute; top: 0; left: 0; right: 0; height: 110px;
  background:
    radial-gradient(circle at 15% 30%, rgba(63,199,194,0.35), transparent 60%),
    radial-gradient(circle at 55% 10%, rgba(232,132,95,0.25), transparent 55%),
    radial-gradient(circle at 85% 60%, rgba(15,95,168,0.3), transparent 60%),
    var(--sand);
  filter: blur(6px);
}

.profile-avatar-lg {
  width: 84px; height: 84px; border-radius: 22px;
  overflow: hidden;
  background: var(--seafoam); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--card);
  box-shadow: var(--shadow-sm);
}

.profile-avatar-camera-btn {
  position: absolute; bottom: -2px; right: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ocean); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--card); cursor: pointer;
  transition: background var(--t);
}
.profile-avatar-camera-btn:hover { background: var(--ocean-deep); }

.profile-summary-info { min-width: 0; }

.profile-summary-name-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-summary-name {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--ocean-deep);
}

.badge-verified { background: #dcfce7; color: #166534; }

.profile-summary-role {
  font-size: 0.82rem; color: var(--muted);
}

.profile-contact-info {
  background: var(--sand);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.profile-contact-info-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}

.profile-contact-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.profile-contact-label {
  display: block; font-size: 0.7rem; color: var(--muted); margin-bottom: 2px;
}

.profile-contact-value {
  display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink);
  word-break: break-word;
}

.profile-stats-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border);
}

.profile-stats-row-header {
  margin-left: auto;
  padding-top: 0; border-top: none;
}

.profile-stat { display: flex; align-items: center; gap: 10px; }

.profile-stat-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--seafoam); color: var(--ocean);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.profile-stat strong {
  display: block; font-size: 1.05rem; color: var(--ink); line-height: 1.2;
}
.profile-stat span {
  font-size: 0.72rem; color: var(--muted);
}

.profile-overview-list, .profile-booking-list {
  display: flex; flex-direction: column; gap: 12px;
}

.profile-overview-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--ink);
}

.profile-booking-item {
  display: flex; align-items: center; gap: 12px;
}

.profile-booking-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--seafoam); color: var(--ocean);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-booking-icon svg { width: 20px; height: 20px; }

.profile-booking-info { min-width: 0; flex: 1; }
.profile-booking-name {
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-booking-date { font-size: 0.74rem; color: var(--muted); margin-bottom: 3px; }

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

/* ── BROWSE COTTAGES CATEGORY TABS ── */

.dash-category-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}

.dash-category-tab {
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
  background: var(--card); color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer; transition: all var(--t);
  font-family: var(--font-body);
}

.dash-category-tab:hover { border-color: var(--ocean-light); color: var(--ocean); }

.dash-category-tab.active {
  background: var(--ocean); color: var(--white); border-color: var(--ocean);
}

/* ── SIDEBAR TAGLINE CARD ── */

.sidebar-tagline-card {
  margin: auto 16px 20px;
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.sidebar-tagline-title {
  color: var(--white); font-family: var(--font-display);
  font-size: 0.95rem; margin-bottom: 6px;
}
.sidebar-tagline-text {
  color: rgba(255,255,255,0.55); font-size: 0.78rem; line-height: 1.5;
}

/* ── COTTAGE CARDS v2 (Browse Cottages redesign) ── */

.cottage-card-v2 { background: var(--white); }

.cottage-card-img-v2 {
  position: relative;
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.cottage-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; color: #1e40af;
  background: #dbeafe;
}

.cottage-card-rating-v2 {
  font-size: 0.82rem; color: var(--ink); margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.cottage-card-rating-v2 svg { width: 13px; height: 13px; color: var(--coral); }

.cottage-card-review-count { color: var(--muted); font-size: 0.78rem; }

.cottage-card-subrow-v2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--muted);
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.cottage-card-subrow-v2 svg { width: 13px; height: 13px; }
.cottage-card-subrow-v2 .dot { color: var(--border); }

.cottage-card-footer-v2 {
  display: flex; align-items: center; justify-content: space-between;
}

/* ── RESERVATION HISTORY CARDS ── */

.reservation-card-list {
  display: flex; flex-direction: column; gap: 12px;
}

.reservation-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  padding: 14px 18px;
}

.reservation-card-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.reservation-card-ref {
  font-family: var(--font-display); color: var(--ocean); font-size: 1rem;
}

.reservation-card-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.reservation-card-cottage {
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); margin-bottom: 6px;
}

.reservation-card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted);
}
.reservation-card-meta .dot { color: var(--border); }

/* ── RESERVATION HISTORY — select-then-act toolbar ── */

.reservation-toolbar-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-left: auto;
}

.reservation-card {
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t);
}

.reservation-card.selected {
  border-color: var(--ocean-light);
  box-shadow: 0 0 0 2px rgba(47, 143, 207, 0.25);
}

.reservation-card-select-hint {
  font-size: 0.72rem; color: var(--border);
}

.reservation-card.selected .reservation-card-select-hint::after {
  content: ' — Selected';
  color: var(--ocean);
  font-weight: 600;
}
/* Cottage photo picker (owner Add Cottage) */
.photo-picker-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.photo-picker-previews:empty { display: none; }
.photo-picker-item {
  position: relative; width: 96px; height: 72px;
  border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border);
}
.photo-picker-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-picker-cover {
  position: absolute; left: 4px; bottom: 4px;
  background: rgba(10, 30, 60, 0.75); color: #fff;
  font-size: 0.65rem; padding: 1px 6px; border-radius: 999px;
}
.photo-picker-remove {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(10, 30, 60, 0.75); color: #fff; font-size: 0.95rem; line-height: 1;
}
.photo-picker-remove:hover { background: #b91c1c; }

/* Cottage details photo gallery (customer view) */
.cottage-gallery-main { position: relative; }
.cottage-gallery-main img { display: block; }
.cottage-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--ocean-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.cottage-gallery-prev { left: 10px; }
.cottage-gallery-next { right: 10px; }
.cottage-gallery-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.cottage-gallery-arrow[hidden] { display: none; }
.cottage-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.cottage-gallery-thumbs:empty { display: none; }
.cottage-gallery-thumb {
  width: 64px; height: 48px; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none;
}
.cottage-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cottage-gallery-thumb.active { border-color: var(--ocean); }

/* Manage Photos modal (owner): 3 fixed photo holders */
.photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-slot {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--r-sm); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.photo-slot.filled { border: 1px solid var(--border); }
.photo-slot.empty { border: 2px dashed var(--border); background: rgba(15, 95, 168, 0.03); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot-label {
  position: absolute; top: 6px; left: 6px; z-index: 1;
  background: rgba(10, 30, 60, 0.75); color: #fff;
  font-size: 0.68rem; padding: 2px 8px; border-radius: 999px;
}
.photo-slot-empty-text { font-size: 0.78rem; color: var(--muted); }
.photo-slot-actions {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; gap: 6px; justify-content: center; padding: 8px;
  background: linear-gradient(transparent, rgba(10, 30, 60, 0.6));
}
.photo-slot-actions .btn-ghost { background: #fff; }
@media (max-width: 600px) { .photo-slots { grid-template-columns: 1fr; } }

/* Three fields in one row (e.g. Peak Season: start, end, percent); stacks on
   phones like every other .form-row (see the 768px rule in base.css). */
.form-row.form-row-3 { grid-template-columns: 1fr 1fr minmax(140px, 0.6fr); }
@media (max-width: 768px) {
  .form-row.form-row-3 { grid-template-columns: 1fr; }
}

/* ── User Permissions (admin): maintenance switches ── */
.perm-group { overflow: hidden; margin-bottom: 20px; padding: 0; }
.perm-group-header {
  background: var(--ocean-deep); color: #fff; text-align: center;
  font-weight: 600; letter-spacing: 0.02em; padding: 12px 16px;
}
.perm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px; border-top: 1px solid var(--border);
}
.perm-row.perm-page { background: rgba(15, 95, 168, 0.04); }
.perm-row.perm-page .perm-label { font-weight: 600; }
.perm-row.perm-button { padding-left: 46px; }
.perm-row.perm-inherited-off { opacity: 0.55; }
.perm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perm-label { color: var(--ink); }
.perm-kind { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 4px; }
.perm-warning { font-size: 0.75rem; color: #b45309; }
.perm-note { font-size: 0.72rem; color: var(--muted); }

.perm-switch {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: none; border: none; cursor: pointer; padding: 4px; border-radius: 999px;
}
.perm-switch:focus-visible { outline: 2px solid var(--ocean-light); outline-offset: 2px; }
.perm-switch-track {
  position: relative; width: 44px; height: 24px; border-radius: 999px;
  background: #cbd5e1; transition: background var(--t);
}
.perm-switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform var(--t);
}
.perm-switch[aria-checked="true"] .perm-switch-track { background: #16a34a; }
.perm-switch[aria-checked="true"] .perm-switch-thumb { transform: translateX(20px); }
.perm-switch-text { width: 24px; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-align: left; }
.perm-switch[aria-checked="true"] .perm-switch-text { color: #15803d; }
@media (max-width: 600px) { .perm-row.perm-button { padding-left: 34px; } }

/* ── Maintenance notice (customer/owner/staff pages, from features.js) ── */
.maintenance-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fffbeb; border: 1px solid #fcd34d; color: #78350f;
  border-radius: var(--r-sm); padding: 16px 18px; margin: 8px 0 20px;
}
.maintenance-notice strong { display: block; margin-bottom: 2px; }
.maintenance-tag {
  margin-left: auto; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: #f59e0b; color: #fff; border-radius: 999px; padding: 1px 7px;
}
.sidebar.collapsed .maintenance-tag { display: none; }
[data-feature].feature-off { opacity: 0.5; cursor: not-allowed !important; }
.dash-section.feature-page-off > :not(.page-header):not(.maintenance-notice) { display: none !important; }

/* ── Notification bell additions (notifications.js) ── */
.notif-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff;
  font-size: 0.66rem; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid var(--sand);
}
.notif-count[hidden] { display: none; }
.notif-dropdown { width: 340px; max-height: 420px; }
.notif-dropdown-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notif-mark-all {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 0.75rem; font-weight: 600; color: var(--ocean);
}
.notif-mark-all:hover { text-decoration: underline; }
button.notif-item {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit;
}
.notif-item.unread { background: rgba(15, 95, 168, 0.07); }
.notif-item.unread .notif-item-text { font-weight: 600; }
.notif-item-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-item-time { font-size: 0.7rem; color: var(--muted); }
.notif-section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 10px 10px 4px;
}
@media (max-width: 480px) { .notif-dropdown { width: calc(100vw - 32px); right: -60px; } }

.reservation-balance { color: #b45309; font-weight: 600; }
