/* ============================================================
   DockTalk — Public Boater-Facing Stylesheet
   Pages: Find-a-Slip Search  |  Marina Profile
   Design: Premium coastal marketplace (mobile-first)
   Font: Inter via Google Fonts
   ============================================================ */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Brand palette */
  --navy:        #0f2744;
  --navy-mid:    #1a3a5c;
  --ocean:       #0ea5e9;
  --ocean-light: #38bdf8;
  --sky:         #e0f2fe;

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1e293b;

  /* Semantic */
  --green:       #16a34a;
  --green-light: #dcfce7;
  --amber:       #d97706;
  --amber-light: #fef3c7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --gold:        #f59e0b;

  /* Shape & depth */
  --radius:      12px;
  --radius-lg:   16px;
  --radius-full: 9999px;
  --shadow:      0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10);
  --shadow-md:   0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
  --shadow-lg:   0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl:   0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.08);

  /* Motion */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Base Reset ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: var(--ocean-light);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

@media (max-width: 767px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ── 3. Navigation ────────────────────────────────────────── */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy);
  box-shadow: 0 1px 0 0 rgb(255 255 255 / 0.08);
  padding: 0 20px;
}

.pub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pub-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-decoration: none;
  flex-shrink: 0;
}

.pub-nav-logo:hover {
  color: var(--ocean-light);
}

.pub-nav-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pub-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-nav-link {
  color: rgb(255 255 255 / 0.80);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.pub-nav-link:hover {
  color: var(--white);
  background-color: rgb(255 255 255 / 0.10);
}

.pub-nav-signin {
  color: var(--white);
  background-color: var(--ocean);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.pub-nav-signin:hover {
  color: var(--white);
  background-color: var(--ocean-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(14 165 233 / 0.40);
}

/* ── 4. Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(
    145deg,
    var(--navy) 0%,
    var(--navy-mid) 45%,
    #0c4a6e 100%
  );
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 48px;
  position: relative;
  overflow: hidden;
}

/* Subtle wave/water texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgb(14 165 233 / 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgb(56 189 248 / 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(14 165 233 / 0.20);
  border: 1px solid rgb(14 165 233 / 0.35);
  color: var(--ocean-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.hero-title-accent {
  color: var(--ocean-light);
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: rgb(255 255 255 / 0.72);
  font-weight: 400;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-value {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero-stat-label {
  font-size: 12px;
  color: rgb(255 255 255 / 0.55);
  font-weight: 500;
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgb(255 255 255 / 0.15);
}

/* ── 5. Search Box ────────────────────────────────────────── */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

/* When embedded inside hero, pull it down slightly */
.hero .search-box {
  margin-top: 0;
}

/* Standalone search box below the fold */
.search-box-standalone {
  max-width: 860px;
  margin: -32px auto 0;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.search-box-standalone .search-box {
  margin: 0;
}

.search-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-field {
  flex: 1 1 180px;
  min-width: 0;
}

.search-field-wide {
  flex: 2 1 240px;
}

.search-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.search-input:hover {
  border-color: var(--gray-400);
  background: var(--white);
}

.search-input:focus {
  border-color: var(--ocean);
  background: var(--white);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.15);
}

.search-input-icon-wrap {
  position: relative;
}

.search-input-icon-wrap .search-input {
  padding-left: 40px;
}

.search-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
}

.search-divider {
  width: 1px;
  height: 32px;
  background: var(--gray-200);
  align-self: center;
  flex-shrink: 0;
}

.btn-search {
  height: 48px;
  padding: 0 28px;
  background: var(--ocean);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-search:hover {
  background: var(--ocean-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgb(14 165 233 / 0.45);
}

.btn-search:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── 6. Results Section ───────────────────────────────────── */
.results-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.results-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}

.results-count {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
  margin-left: 6px;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-sort-label {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
}

.results-sort-select {
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
  transition: border-color var(--transition);
}

.results-sort-select:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.15);
}

/* ── 7. Filter Chips (optional row above grid) ─────────────── */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--ocean);
  color: var(--ocean);
  background: var(--sky);
}

.filter-chip.active {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
}

/* ── 8. Marina Grid ───────────────────────────────────────── */
.marina-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ── 9. Marina Card ───────────────────────────────────────── */
.marina-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.marina-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.marina-card-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--gray-200);
  display: block;
  flex-shrink: 0;
}

.marina-card-photo-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 36px;
  flex-shrink: 0;
}

.marina-card-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.marina-card-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.marina-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.marina-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.marina-card-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.marina-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.marina-card-rating-star {
  color: var(--gold);
  font-size: 13px;
}

.marina-card-location {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.marina-card-location-pin {
  font-size: 12px;
  flex-shrink: 0;
}

.marina-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 10px;
}

.marina-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.marina-card-rate {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  background: var(--green-light);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.marina-card-rate-amount {
  font-size: 15px;
}

.marina-card-rate-period {
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  opacity: 0.80;
}

.marina-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.marina-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  margin-top: 14px;
}

/* ── 10. Amenity Chip ─────────────────────────────────────── */
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.4;
}

.amenity-chip-icon {
  font-size: 11px;
  line-height: 1;
}

/* ── 11. Availability Badges ──────────────────────────────── */
.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-available::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}

.badge-limited {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--amber-light);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-limited::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-full {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-full::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.60; transform: scale(0.85); }
}

/* ── 12. Profile — Hero ───────────────────────────────────── */
.profile-hero {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
}

.profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(15 39 68 / 0.90) 0%,
    rgb(15 39 68 / 0.50) 40%,
    rgb(15 39 68 / 0.10) 100%
  );
  pointer-events: none;
}

.profile-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--white);
}

.profile-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-hero-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.30);
}

.profile-hero-location {
  font-size: 15px;
  color: rgb(255 255 255 / 0.80);
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  color: rgb(255 255 255 / 0.90);
  font-weight: 500;
}

.profile-hero-rating .star {
  color: var(--gold);
}

/* Photo gallery trigger on hero */
.profile-hero-gallery-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgb(255 255 255 / 0.15);
  border: 1px solid rgb(255 255 255 / 0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.profile-hero-gallery-btn:hover {
  background: rgb(255 255 255 / 0.25);
}

/* ── 13. Profile Body Layout ──────────────────────────────── */
.profile-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.profile-main {
  min-width: 0;
}

.profile-sidebar {
  padding-top: 32px;
}

/* ── 14. Profile Section ──────────────────────────────────── */
.profile-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.profile-section-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: -10px;
  margin-bottom: 16px;
}

.profile-description {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.70;
}

/* ── 15. Amenity Grid ─────────────────────────────────────── */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  transition: background var(--transition);
}

.amenity-item:hover {
  background: var(--sky);
  border-color: rgb(14 165 233 / 0.30);
}

.amenity-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

/* ── 16. Inquiry / Sidebar Card ──────────────────────────── */
.inquiry-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  position: sticky;
  top: 84px; /* nav height + gap */
}

.inquiry-card-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 20px;
}

.inquiry-card-price-amount {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.inquiry-card-price-period {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
}

.inquiry-card-price-from {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  align-self: flex-start;
  padding-top: 4px;
}

.inquiry-card-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: all var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.inquiry-card-select:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.15);
}

.inquiry-card-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 16px 0;
}

.inquiry-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
}

.inquiry-card-row-label {
  color: var(--gray-600);
}

.inquiry-card-row-value {
  font-weight: 600;
  color: var(--gray-800);
}

.inquiry-card-row-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  border-top: 1.5px solid var(--gray-200);
  padding-top: 12px;
  margin-top: 8px;
  margin-bottom: 0;
}

.inquiry-card-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ── 17. Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: var(--ocean);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--ocean-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgb(14 165 233 / 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline-pub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--white);
  color: var(--ocean);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--ocean);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

.btn-outline-pub:hover {
  background: var(--sky);
  color: var(--ocean);
  border-color: var(--ocean-light);
}

.btn-outline-pub:active {
  background: rgb(14 165 233 / 0.10);
}

/* ── 18. Star Rating ──────────────────────────────────────── */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating .star {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.star-rating .star-empty {
  color: var(--gray-200);
  font-size: 15px;
  line-height: 1;
}

.star-rating-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-left: 5px;
}

.star-rating-count {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 400;
  margin-left: 3px;
}

/* ── 19. Review Card ──────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}

.review-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card-meta {
  flex: 1;
  min-width: 0;
}

.review-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

.review-card-date {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 1px;
}

.review-card-stars {
  flex-shrink: 0;
}

.review-card-body {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ── 20. Photo Grid ───────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
}

.photo-grid-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-200);
  cursor: pointer;
  position: relative;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-grid-item:hover img {
  transform: scale(1.04);
}

.photo-grid-item-more {
  position: absolute;
  inset: 0;
  background: rgb(15 39 68 / 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
}

/* 2x3 variant */
.photo-grid-3row {
  grid-template-rows: repeat(3, auto);
}

/* ── 21. Slip Table ───────────────────────────────────────── */
.slip-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.slip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.slip-table thead {
  background: var(--gray-50);
}

.slip-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1.5px solid var(--gray-200);
  white-space: nowrap;
}

.slip-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.slip-table tbody tr:last-child td {
  border-bottom: none;
}

.slip-table tbody tr:hover td {
  background: var(--gray-50);
}

.slip-table-size {
  font-weight: 700;
  color: var(--navy);
}

.slip-table-rate {
  font-weight: 600;
  color: var(--green);
}

/* ── 22. Map Placeholder ──────────────────────────────────── */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── 23. Empty / Loading States ──────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.50;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state-sub {
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-100) 25%,
    var(--gray-200) 50%,
    var(--gray-100) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 24. Utility / General ────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  background: var(--gray-100);
  margin: 32px 0;
}

.text-navy   { color: var(--navy); }
.text-ocean  { color: var(--ocean); }
.text-muted  { color: var(--gray-500); }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ── 25. Footer ───────────────────────────────────────────── */
.pub-footer {
  background: var(--navy);
  color: rgb(255 255 255 / 0.65);
  padding: 48px 20px 32px;
  font-size: 14px;
}

.pub-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.pub-footer-brand {
  max-width: 300px;
}

.pub-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  text-decoration: none;
}

.pub-footer-tagline {
  font-size: 13px;
  color: rgb(255 255 255 / 0.50);
  line-height: 1.55;
}

.pub-footer-links-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.35);
  margin-bottom: 12px;
}

.pub-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pub-footer-links a {
  color: rgb(255 255 255 / 0.65);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}

.pub-footer-links a:hover {
  color: var(--white);
}

.pub-footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgb(255 255 255 / 0.35);
}

/* ── 26. Responsive — Tablet 768px ───────────────────────── */
@media (min-width: 768px) {

  /* Nav */
  .pub-nav-link {
    font-size: 14px;
  }

  /* Hero */
  .hero {
    padding: 72px 40px 60px;
  }

  /* Search box: side by side */
  .search-form {
    flex-wrap: nowrap;
    align-items: flex-end;
  }

  .btn-search {
    flex-shrink: 0;
  }

  /* Grid: 2 columns */
  .marina-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Profile hero content: use container width */
  .profile-hero-content {
    padding: 40px;
  }

  /* Amenity grid: 3 cols */
  .amenity-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Reviews: 2 cols */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Photo grid: allow 2x3 */
  .photo-grid-3row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .pub-footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ── 27. Responsive — Desktop 1024px ─────────────────────── */
@media (min-width: 1024px) {

  /* Grid: 3 columns */
  .marina-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Profile body: 2-column layout */
  .profile-body {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 48px;
    align-items: start;
  }

  .profile-sidebar {
    padding-top: 0;
  }

  /* Amenity grid: 4 cols */
  .amenity-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Profile hero: align content to container */
  .profile-hero-content {
    left: 50%;
    transform: translateX(-50%);
    padding: 40px 20px;
  }

  .profile-hero-gallery-btn {
    right: calc(50% - 580px);
  }
}

/* ── 28. Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
