/* Island Stays — Caribbean booking platform.
   Palette: lagoon deep #0E4D57, sea glass #7FD3C6, coconut #FBF7EF,
   hibiscus coral #E4573D, night reef #12262B, sunbleach #F3E4C8. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650&family=Karla:wght@400;500;700&display=swap');

:root {
  --lagoon: #0E4D57;
  --lagoon-dark: #093740;
  --sea-glass: #7FD3C6;
  --coconut: #FBF7EF;
  --coral: #E4573D;
  --coral-dark: #C74228;
  --reef: #12262B;
  --sand: #F3E4C8;
  --ink: #1E2A2D;
  --muted: #5E7276;
  --line: #E2DACB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 38, 43, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Karla", system-ui, sans-serif;
  color: var(--ink);
  background: white;
  line-height: 1.55;
}
h1, h2, h3, h4 .display { font-family: "Fraunces", Georgia, serif; font-weight: 650; line-height: 1.15; color: var(--reef); margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1rem, 2vw, 1rem); color: black; }
a { color: var(--lagoon); }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.p-0 {padding: 0;}
.m-0{margin:0;}

/* Header / footer */
.site-header { background: var(--lagoon); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-family: "Fraunces", serif; font-size: 1.35rem; color: #fff; text-decoration: none; letter-spacing: .3px; }
.brand em { color: var(--sea-glass); font-style: normal; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: white; text-decoration: none; font-weight: 500; }
.nav a:hover { color: white; }
.site-footer { background: var(--reef); color: #C7D6D3; margin-top: 64px; padding: 36px 0; font-size: .95rem; }
.site-footer a { color: var(--sea-glass); }

/* Wave divider — the signature */
.wave { display: block; width: 100%; height: 42px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--lagoon) 0%, var(--lagoon-dark) 70%); color: #fff; padding: 56px 0 84px; }
.hero h1 { color: #fff; max-width: 640px; }
.hero h1 em { color: var(--sea-glass); font-style: italic; }
.hero p { max-width: 520px; color: #D9ECE8; }

/* Search card */
.search-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: -52px; position: relative; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.search-grid label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: 4px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; background: #fff; cursor: pointer; }
.chip input { accent-color: var(--coral); }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; font-size: .95rem; }
.hint { font-size: .85rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-dark); }
.btn--sea { background: var(--lagoon); color: #fff; }
.btn--ghost { background: transparent; border: 1.5px solid var(--lagoon); color: var(--lagoon); }
.btn--sm { padding: 6px 12px; font-size: .9rem; }
.btn--danger { background: #B3352B; color: #fff; }

/* Cards / grid */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid--4 { grid-template-columns: 1fr; } }


.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--sand); }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card__price { font-weight: 700; color: var(--reef); }
.card__actions { margin-top: auto; display: flex; gap: 8px;}
/* --- Whole property card is one click target --- */
.card--link { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,38,43,.14); }
.card__link { color: inherit; text-decoration: none; }
/* The anchor stretches over the whole card, so any click follows the link
   while the markup keeps a single real <a> for keyboard users and crawlers. */
.card__link::after { content: ""; position: absolute; inset: 0; }
.card--link:focus-within { outline: 2px solid var(--sea, #7FD3C6); outline-offset: 3px; }

.amenity-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--sand); border-radius: 999px; padding: 2px 10px; font-size: .8rem; color: var(--reef); }

/* Pills / status */
.pill { border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.pill--ok { background: #DDF3E4; color: #14603A; }
.pill--no { background: #F9DDD7; color: #8C2B1B; }
.pill--warn { background: #FBEFD3; color: #7A5A12; }
.pill--info { background: #DDEFF3; color: #10505C; }

.status--confirmed, .status--paid, .status--processed { background:#DDF3E4; color:#14603A; }
.status--held, .status--pending, .status--requested, .status--approved { background:#FBEFD3; color:#7A5A12; }
.status--cancelled, .status--failed, .status--rejected { background:#F9DDD7; color:#8C2B1B; }
.status--refunded, .status--partially_refunded { background:#DDEFF3; color:#10505C; }

/* Availability rows */
.avail-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.avail-row__cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Tables (dashboards) */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--sand); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--reef); }
table.data tr:last-child td { border-bottom: 0; }

/* Admin shell */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { background: var(--reef); color: #C7D6D3; padding: 22px 16px; }
.admin-nav .brand { display: block; margin-bottom: 22px; }
.admin-nav a { display: block; color: #C7D6D3; text-decoration: none; padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(127, 211, 198, .14); color: var(--sea-glass); }
.admin-main { padding: 28px; max-width: 1100px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stat b { display: block; font-size: 1.6rem; font-family: "Fraunces", serif; color: var(--lagoon); }
.stat span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 10px; margin: 14px 0; }
.flash--notice { background: #DDF3E4; color: #14603A; }
.flash--alert { background: #F9DDD7; color: #8C2B1B; }
.alert { color: #8C2B1B; }

/* Microsite */
.micro-hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; color: #fff; background: var(--lagoon-dark); }
.micro-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.micro-hero .container { position: relative; padding-bottom: 34px; }
.micro-hero h1 { color: #fff; }
.section { padding: 44px 0; }
.section--sand { background: var(--sand); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }

/* Booking summary */
.summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 500; }
.summary .total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 8px; }

.auth-card { max-width: 440px; margin: 48px auto; background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.actions-inline { display: inline-flex; gap: 8px; flex-wrap: wrap; }
pre.json { background: var(--reef); color: #BFE8DF; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: .85rem; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .admin-main { padding: 18px; }
}
:focus-visible { outline: 3px solid var(--sea-glass); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* --- Availability calendar (date picker with booked dates greyed out) --- */
.cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted, #5E7276); text-align: center; padding-bottom: 4px; }
.cal__pad { }
.cal__day {
  appearance: none; border: 1px solid transparent; background: #fff;
  font: inherit; font-size: .9rem; padding: 7px 0; text-align: center;
  border-radius: 8px; cursor: pointer; color: var(--reef, #12262B);
}
button.cal__day:hover { border-color: var(--sea, #7FD3C6); }
.cal__day--off {
  display: block; padding: 7px 0; text-align: center; border-radius: 8px;
  background: #EDE8DD; color: #B4AC9C; cursor: not-allowed;
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.cal__day--full { background: #E7E2D6; color: #A79E8D; }
.cal__day--sel { background: var(--coral, #E4573D) !important; color: #fff !important; text-decoration: none; }
.cal__day--range { background: #FBE3DD; }
.cal__hint { margin-top: 8px; }


/* --- Demo/staging banner (sandbox gateway on a deployed environment) --- */
.demo-bar {
  background: #E4573D; color: #fff; text-align: center;
  padding: 8px 14px; font-size: .88rem; letter-spacing: .01em;
}
.demo-bar strong { letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }

/* --- Simplified homepage search bar --- */
.searchbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.searchbar__field { position: relative; flex: 1 1 200px; }
.searchbar__field--sm { flex: 0 1 165px; }
.searchbar__field label { display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #5E7276); margin-bottom: 5px; }
.searchbar__field input { width: 100%; }
.searchbar__submit { flex: 0 0 auto; height: 46px; padding: 0 26px; }

.typeahead { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 6px 0 0;
  padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line, #DBD3C4);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(18,38,43,.14); max-height: 300px; overflow: auto; }
.typeahead button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%; padding: 9px 10px; background: none; border: 0; border-radius: 8px;
  text-align: left; cursor: pointer; font: inherit; color: inherit; }
.typeahead button:hover { background: #FBF7EF; }
.typeahead span { font-size: .8rem; color: var(--muted, #5E7276); }

.occupancy__toggle { width: 100%; height: 46px; padding: 0 12px; text-align: left;
  background: #fff; border: 1px solid var(--line, #DBD3C4); border-radius: 10px;
  font: inherit; cursor: pointer; color: var(--ink, #12262B); }
.occupancy { position: absolute; z-index: 30; top: 100%; right: 0; margin-top: 6px; width: 250px;
  background: #fff; border: 1px solid var(--line, #DBD3C4); border-radius: 12px; padding: 14px;
  box-shadow: 0 14px 34px rgba(18,38,43,.14); }
.occupancy__row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line, #DBD3C4);
  background: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--brand, #0E4D57); }
.stepper button:hover { border-color: var(--sea, #7FD3C6); }
.stepper input { width: 46px; text-align: center; padding: 6px 0; }
.occupancy__done { width: 100%; margin-top: 8px; }

.more-filters { margin-top: 14px; }
.more-filters summary { cursor: pointer; font-size: .88rem; font-weight: 600;
  color: var(--brand, #0E4D57); }
.more-filters .filters-row { margin-top: 10px; }

@media (max-width: 720px) {
  .searchbar__field, .searchbar__field--sm { flex: 1 1 100%; }
  .searchbar__submit { width: 100%; }
  .occupancy { width: 100%; }
}

/* --- Account menu (header avatar dropdown) --- */
.account { position: relative; display: inline-block; }
.account__btn { display: flex; align-items: center; gap: 5px; padding: 3px;
  background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
.account__avatar { display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--lagoon, #0E4D57); color: #fff;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em; }
.account__caret { font-size: .7rem; color: var(--muted, #5E7276); }
.account__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  min-width: 230px; background: #fff; border: 1px solid var(--line, #DBD3C4);
  border-radius: 12px; padding: 6px; box-shadow: 0 16px 36px rgba(18,38,43,.16); }
.account__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line, #DBD3C4);
  margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.account__head span { font-size: .8rem; color: var(--muted, #5E7276); word-break: break-all; }
.account__item { display: block; width: 100%; padding: 4px 12px; border: 0; border-radius: 8px;
  background: none; text-align: left; text-decoration: none; cursor: pointer; font: inherit; color: black !important; }
.account__form { margin: 0; }
.auth-card--wide { max-width: 520px; }
.auth-card--wide h2 { font-size: 1.05rem; margin-bottom: 4px; }
