/* --- NEW THEME --- */
:root{ --green:#0e4d2e; --purple:#4b1d63; --ink:#f3f4f6; --muted:#d6d9e0; --card:#16161c; }
*{box-sizing:border-box}
body{
  margin:0; color:var(--ink);
  font-family:"Cormorant Garamond", system-ui,-apple-system, Segoe UI, Roboto, Inter, Ubuntu, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(1000px 500px at 110% 120%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(135deg,var(--green), var(--purple));
}
.topnav{position:sticky; top:0; z-index:1000; backdrop-filter: blur(8px); background:linear-gradient(135deg, rgba(14,77,46,.75), rgba(75,29,99,.75)); border-bottom:1px solid rgba(255,255,255,.14);}
.inner{max-width:1120px; margin:0 auto; padding:10px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px}
.brand{display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:700; font-size: 24px;}
.brand .script{font-family:'Great Vibes', cursive; font-size:28px}
.navlinks{display:flex; gap:10px; flex-wrap:wrap}
.navlinks a{ text-decoration:none; color:#fff; font-weight:700; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14) }
.navlinks a:hover{background:rgba(255,255,255,.14)}
.container{max-width:1120px; margin:0 auto; padding:24px 20px 60px}
.card{background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.10); border-radius:24px; padding:24px}
h1{margin:0 0 12px 0; font-size:32px}
h2{margin:24px 0 8px 0; font-size:22px}
p{color:var(--muted)}
.card a{color:#fff; text-decoration:underline}

/* Grid + cards (Using old .item-list class) */
.item-list{list-style:none; padding:0; margin:16px 0; display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:16px}
.item-card{display:flex; flex-direction: column; gap:12px; padding:12px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10); border-radius:16px}
.item-card .item-image img{width:100%; height: 200px; object-fit:cover; border-radius:10px; background:#fff; cursor: pointer;}
.item-details{display:flex; flex-direction:column; gap:8px; min-width:0; flex-grow: 1;}
.item-card h2{font-size: 1.25rem; font-weight:700; line-height:1.2; margin: 0; color: var(--ink);}
.card-section-categories{display:flex; gap:6px; align-items:center; flex-wrap:wrap; min-height: 24px;}
.item-category{display:inline-block; padding:2px 8px; border-radius:999px; font-size:.85rem; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.06)}
.item-price{color:var(--ink); font-size:1.1rem; font-weight: 700;}
.item-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1);}
.item-actions form { margin: 0; }

/* Themed buttons */
.btn{
  display:inline-flex; align-items:center; justify-content: center; gap:6px;
  padding:6px 12px; border-radius:999px; font-weight:600; font-size: 0.9rem;
  font-family: "Cormorant Garamond", system-ui, sans-serif; /* Match font */
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(135deg, rgba(14,77,46,.9), rgba(75,29,99,.9));
  color:#fff; text-decoration:none; cursor:pointer;
  transition:transform .06s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:0 2px 10px rgba(0,0,0,.25);
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.35); }
.btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

.btn.ghost, .btn-secondary {
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:none;
}
.btn.btn-primary {
    background:linear-gradient(135deg, rgba(14,77,46,.9), rgba(75,29,99,.9));
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 2px 10px rgba(0,0,0,.25);
}
.btn.btn-search {
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.24);
    box-shadow:none;
}
/* Red buttons */
.btn[style*="#a44"], .btn[style*="#dc3545"] {
    background: #a44 !important;
    border-color: #c88 !important;
}

/* --- MERGED STYLES from old CSS --- */

/* --- Filter Form --- */
.filter-form {
    background: transparent; /* Remove double card */
    padding: 0;
    border-radius: 24px;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.filter-form .form-group {
    margin-bottom: 0;
}
.filter-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.filter-form select {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    font-size: 1rem;
    width: 100%;
    background-color: rgba(255,255,255,.1);
    color: var(--ink);
    box-sizing: border-box;
    font-family: "Cormorant Garamond", system-ui, sans-serif;
}
.filter-form .category-group {
    grid-column: 1 / -1; /* Span full width */
}
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.category-checkbox {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    background:rgba(255,255,255,.05); 
    padding: 4px 8px; 
    border-radius: 6px; 
    border: 1px solid rgba(255,255,255,.1);
}
.filter-form .submit-group {
    grid-column: 1 / -1; /* Span full width */
}

/* --- Price Slider Styles --- */
.price-slider-group label {
    margin-bottom: 0.75rem;
}
.dual-slider-container {
    width: 100%;
}
.range-slider {
    position: relative;
    height: 8px;
    background: rgba(255,255,255,.2);
    border-radius: 5px;
}
.range-fill {
    position: absolute;
    height: 100%;
    background: var(--green);
    border-radius: 5px;
}
.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    top: -4px;
    height: 16px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--ink);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid var(--card);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.range-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--ink);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid var(--card);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.empty-list {
    text-align: center;
    font-size: 1.2rem;
    color: var(--muted);
    background: var(--card);
    padding: 2rem;
    border-radius: 24px;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}
footer a {
    color: var(--muted);
}

/* --- LIGHTBOX STYLES --- */
#lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* --- THEME TOGGLE (Removed from new theme) --- */
.theme-toggle {
    display: none; /* Hide it */
}

/* --- Sticky Filter Section --- */
#sticky-filter-section {
    position: sticky;
    top: 80px; /* Below new topnav */
    z-index: 100;
    background: var(--card);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 24px;
    transition: padding 0.3s ease;
    border: 1px solid rgba(255,255,255,.10); /* Match card border */
}
.toggle-filters-btn {
    width: 100%;
    margin-bottom: 1.5rem;
}
#sticky-filter-section.filters-collapsed {
    padding-top: 1.5rem; /* Keep padding consistent */
    padding-bottom: 1.5rem;
}
#sticky-filter-section.filters-collapsed .filter-form {
    display: none; /* Hide the form itself */
}

/* Admin links */
header #admin-link {
    display: none; /* Keep hidden by default */
}

@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
    .admin-nav {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* --- ADMIN LOGIN PAGE STYLES --- */
.login-container {
    max-width: 450px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.login-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    font-weight: normal;
    color: var(--ink);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"] {
    width: 100%;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.2);
    background-color: rgba(255,255,255,.05);
    color: var(--ink);
    border-radius: 999px; /* Match buttons */
    font-family: "Cormorant Garamond", system-ui, sans-serif;
    font-size: 1.1rem;
}
.form-group input[type="file"] {
    color: var(--muted);
    font-family: "Cormorant Garamond", system-ui, sans-serif;
    font-size: 1.1rem;
}
.form-group input:focus {
    outline: 2px solid var(--green);
    border-color: var(--green);
    background-color: rgba(255,255,255,.02);
}
.login-container .btn {
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 1.1rem;
}
.error, .message {
    color: var(--ink);
    background: rgba(14, 77, 46, 0.3); /* Green */
    border: 1px solid rgba(14, 77, 46, 0.7);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}
.error, .message.error {
    color: #ff8a8a;
    background: rgba(220, 53, 69, 0.2); /* Red */
    border: 1px solid rgba(220, 53, 69, 0.5);
}
.login-footer {
    text-align: center;
    margin-top: 2rem;
}
.login-footer a {
    color: var(--muted);
    text-decoration: none;
}
.login-footer a:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* --- ADMIN DASHBOARD STYLES --- */
.admin-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.admin-card h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    font-weight: normal;
    color: var(--ink);
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-card .form-group {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1.5rem;
    align-items: center;
}
.admin-card .form-group label {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
}
.admin-card .input-group {
    display: flex;
    gap: 10px;
}
.admin-card .input-group input {
    flex-grow: 1;
}
.fetch-status {
    grid-column: 2; /* Align with input */
    font-size: 0.9em;
    color: var(--muted);
    margin-top: -1rem;
    padding-bottom: 1rem;
}
.admin-card .category-group {
    grid-template-columns: 1fr;
}
.admin-card .category-group label {
    text-align: left;
}
.admin-card .filter-form .form-group {
    grid-template-columns: 1fr; /* Override admin grid */
}
.admin-card .filter-form label {
    text-align: left; /* Override admin grid */
}

/* Admin Item Table */
.item-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}
.item-table th, .item-table td {
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.15);
    text-align: left;
    vertical-align: middle;
}
.item-table th {
    background-color: rgba(255,255,255,.05);
    font-weight: 700;
    color: var(--ink);
}
.item-table .actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.admin-thumb {
    max-width: 100px; /* --- IMAGE SCALING --- */
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.1);
}
.admin-thumb.clickable-image {
    cursor: pointer;
}
.purchased-row {
    background-color: rgba(0,0,0,.3);
    color: var(--muted);
}
.purchased-row a {
    color: var(--muted);
    text-decoration: line-through;
}
.purchased-row a:hover {
    color: var(--muted);
    text-decoration: line-through;
}


@media (max-width: 768px) {
    .admin-card .form-group {
        grid-template-columns: 1fr;
    }
    .admin-card .form-group label {
        text-align: left;
    }
    .fetch-status {
        grid-column: 1;
    }
}

/* --- Active Nav Link Style --- */
.navlinks a.active {
    background: var(--green);
    color: var(--ink);
    border-color: rgba(255,255,255,.4);
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* --- Admin Link Color Fix --- */
.admin-card a {
    color: var(--ink);
    text-decoration: underline;
}
.admin-card a:hover {
    color: var(--muted);
}

/* --- ATTRACTIONS PAGE STYLES --- */
.attractions{list-style:none; padding:0; margin:16px 0; display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:16px}
.attraction{display:flex; align-items:flex-start; gap:12px; padding:12px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10); border-radius:16px}
.attraction img{width:96px; height:72px; object-fit:cover; border-radius:10px; flex:0 0 96px; filter:saturate(1.05)}
.attraction .info{display:flex; flex-direction:column; gap:6px; min-width:0}
.attraction .title{font-weight:700; line-height:1.2; display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.attraction .meta{color:var(--muted); font-size:0.95rem; display:flex; align-items:center; gap:8px; flex-wrap:wrap}

/* Attraction Buttons */
.chipbtn, .dirbtn{
  appearance:none; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08);
  color:#fff; border-radius:999px; padding:6px 10px; font-weight:700; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:6px;
  font-family: "Cormorant Garamond", system-ui, sans-serif;
}
.chipbtn{ width:22px; height:22px; padding:0; justify-content:center; font-size:.9rem; }
.chipbtn:hover, .dirbtn:hover{background:rgba(255,255,255,.16)}
.badge{display:inline-block; font-size:.85rem; padding:2px 8px; border:1px solid rgba(255,255,255,.18); border-radius:999px; color:var(--muted); background:rgba(255,255,255,.05);}

/* Dialogs */
dialog{
  border:none; padding:0; border-radius:16px; max-width:560px; width:min(92vw, 560px);
  background:rgba(15,15,22,.98); color:var(--ink); box-shadow:0 10px 40px rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.12);
}
dialog::backdrop{background:rgba(0,0,0,.5)}
.dlghdr{padding:16px 18px; border-bottom:1px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:space-between; gap:12px}
.dlghdr h2{margin:0; font-size:20px; font-family: "Cormorant Garamond", system-ui, sans-serif; font-weight: 700;}
.dlgbody{padding:16px 18px; color:var(--muted)}
.dlgbody p{margin:0 0 10px 0; color:var(--muted)}
.dlgfoot{padding:14px 18px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:flex-end}
.closebtn{
  appearance:none; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08);
  color:#fff; border-radius:10px; padding:8px 12px; font-weight:700; cursor:pointer;
  font-family: "Cormorant Garamond", system-ui, sans-serif;
}
.closebtn:hover{background:rgba(255,255,255,.16)}

/* Money pulse */
.pulse-money{
  position:relative;
  color:#22c55e;
  font-weight:700;
  display:inline-block;
  animation:pulse-money 1.2s ease-in-out infinite;
  text-shadow:
    0 0 2px rgba(34,197,94,.9),
    0 0 6px rgba(34,197,94,.7),
    0 0 12px rgba(34,197,94,.4);
}
.pulse-money::after{
  content:"";
  position:absolute;
  inset:-6px -10px;
  border-radius:8px;
  pointer-events:none;
  box-shadow:0 0 18px 6px rgba(34,197,94,.35);
  animation:pulse-money-halo 1.2s ease-in-out infinite;
}
@keyframes pulse-money{
  0%   { transform:scale(1);    }
  50%  { transform:scale(1.06);}
  100% { transform:scale(1);    }
}
@keyframes pulse-money-halo{
  0%   { opacity:.35; }
  50%  { opacity:.65; }
  100% { opacity:.35; }
}
@media (prefers-reduced-motion: reduce){
  .pulse-money, .pulse-money::after{
    animation:none;
    transform:none;
  }
}
.pulse-money{ margin: 0 0.25em; }

/* --- NEW: HOTELS PAGE STYLES --- */
.hotels{list-style:none; padding:0; margin:16px 0; display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:16px}
.hotel{display:flex; align-items:flex-start; gap:12px; padding:12px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10); border-radius:16px}
.hotel img{width:96px; height:72px; object-fit:cover; border-radius:10px; flex:0 0 96px; background:#fff}
.hotel .info{display:flex; flex-direction:column; gap:6px; min-width:0}
.hotel .title{font-weight:700; line-height:1.2}
.hotel .badges{display:flex; gap:6px; align-items:center; flex-wrap:wrap}
.hotel .badge.star{color:#ffd700; letter-spacing:1.5px}
.hotel .meta{color:var(--muted); font-size:0.95rem; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;}

/* --- NEW: RESTAURANTS PAGE STYLES --- */
/* Use .restaurants class on <ul> to override .attraction img */
.restaurants .attraction img {
    width:96px;
    height:72px;
    object-fit:contain; /* Different from attractions */
    background:#fff; /* Different from attractions */
    border-radius:10px;
    flex:0 0 96px;
    padding:4px; /* Different from attractions */
    filter: none; /* Override attractions */
}
.restaurants .attraction .info {
    gap: 4px; /* Different from attractions */
}
.stars{color:#ffd700; font-size:1.1rem; letter-spacing:2px}