:root {
  --bg: #F8F7F5;
  --surface: #FFFFFF;
  --surface-soft: #FBFAF8;

  --blue: #8FAED1;
  --blue-light: #AFC6E0;
  --blue-soft: #D6E3F1;
  --blue-dark: #6F95BF;
  --blue-deep: #4F7DAE;

  --green: #6FAE8F;
  --green-soft: #EAF6EF;
  --gold: #C99A4E;
  --gold-soft: #FFF4DC;

  --text: #3F3A36;
  --text-secondary: #6F685F;
  --text-muted: #8C847B;
  --muted: #8C847B;

  --line: #E8E3DC;

  --shadow-sm: 0 8px 20px rgba(63, 58, 54, 0.05);
  --shadow-md: 0 18px 45px rgba(63, 58, 54, 0.08);
  --shadow-blue: 0 24px 70px rgba(143, 174, 209, 0.22);

  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-pill: 999px;

  --page-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.profile-page {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(143,174,209,0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(214,227,241,0.75), transparent 30%),
    radial-gradient(circle at 80% 55%, rgba(143,174,209,0.10), transparent 22%),
    linear-gradient(180deg, #fcfbf9 0%, #f7f6f3 42%, #f2f5fa 100%);
  background-attachment: fixed;
  color: var(--text);
}

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

a {
  text-decoration: none;
  color: inherit;
}

.profile-shell,
.profile-nav,
.footer-inner,
.footer-bottom {
  width: min(calc(100% - 96px), var(--page-width));
  margin: 0 auto;
}

/* HEADER */

.profile-header {
  padding: 26px 0 10px;
}

.profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.profile-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.profile-brand-name {
  font-size: 28px;
  font-weight: 600;
  color: var(--blue);
}

.profile-nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.profile-nav-links a,
.profile-nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.profile-nav-links a.active {
  color: var(--blue);
  position: relative;
}

.profile-nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateX(-50%);
}

.profile-nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.profile-nav-cta {
  background: #93a5cb;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

.profile-nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(143,174,209,0.28);
}

/* MAIN */

.profile-main {
  padding: 34px 0 72px;
}

.back-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.back-link,
.top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.back-link {
  color: var(--blue-deep);
}

.top-action {
  padding: 11px 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(232,224,216,0.95);
  color: var(--text-secondary);
}

.back-actions {
  display: flex;
  gap: 10px;
}

.top-action:hover,
.back-link:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

/* LAYOUT */

.profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 28px;
  align-items: start;
}

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

/* HERO CARD */

.profile-hero-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(232,224,216,0.95);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.profile-hero-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  top: -150px;
  background: radial-gradient(circle, rgba(143,174,209,0.18), transparent 70%);
  pointer-events: none;
  animation: profileGlow 9s linear infinite;
}

@keyframes profileGlow {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}

.profile-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-main-image,
.gallery-item {
  overflow: hidden;
  border-radius: 26px;
  background: var(--blue-soft);
}

.hero-main-image img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-image {
  height: 420px;
}

.hero-side-gallery {
  display: grid;
  gap: 14px;
}

.gallery-item {
  height: 130px;
}

.profile-summary {
  position: relative;
  z-index: 1;
}

.summary-badge,
.availability-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #eef4fb;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.summary-head h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: #1f2740;
}

.rating-line {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 15px;
}

.rating-text {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.summary-tags span,
.area-tags span {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(232,224,216,0.95);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.summary-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(232,224,216,0.9);
}

.summary-stat {
  padding: 20px;
}

.summary-stat + .summary-stat {
  border-left: 1px solid rgba(232,224,216,0.9);
}

.summary-stat strong {
  display: block;
  color: #1f2740;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.summary-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* TABS */

.profile-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 24px 0;
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(232,224,216,0.95);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.profile-tabs a {
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.profile-tabs a.active,
.profile-tabs a:hover {
  background: var(--blue);
  color: #fff;
}

/* CONTENT CARDS */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.content-card,
.sidebar-card,
.booking-card,
.availability-cta-card,
.trust-bar {
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(232,224,216,0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-card {
  padding: 30px;
  transition: 0.22s ease;
}

.content-card:hover,
.sidebar-card:hover,
.booking-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(63,58,54,0.10);
  border-color: var(--blue-soft);
}

.content-card h2,
.availability-cta-card h2,
.sidebar-card h3,
.booking-card h3 {
  margin: 0 0 14px;
  color: #1f2740;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.content-card h2 {
  font-size: 28px;
}

.content-card p,
.sidebar-card p,
.booking-card p,
.availability-cta-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 15px;
}

.mini-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.mini-check-grid span {
  position: relative;
  padding: 13px 14px 13px 38px;
  border-radius: 18px;
  background: #eef4fb;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
}

.mini-check-grid span::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 12px;
  color: var(--blue);
  font-weight: 900;
}

.quote-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(143,174,209,0.16), rgba(255,255,255,0.72));
  color: #1f2740;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

.love-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.love-list div,
.review-item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(248,247,245,0.72);
  border: 1px solid rgba(232,224,216,0.9);
}

.love-list strong,
.review-item strong {
  display: block;
  color: #1f2740;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.love-list p,
.review-item p {
  font-size: 14px;
}

.card-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 700;
}

.card-link:hover {
  color: var(--blue);
}

/* SERVICES */

.service-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(232,224,216,0.95);
  transition: 0.2s ease;
}

.service-row:hover {
  border-color: var(--blue-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.service-row strong {
  display: block;
  color: #1f2740;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.service-row p {
  font-size: 13px;
}

.service-row > span {
  white-space: nowrap;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 800;
}

/* REVIEWS */

.review-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}

.review-score strong {
  color: #1f2740;
  font-size: 16px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-item span {
  display: block;
  color: var(--gold);
  margin-bottom: 8px;
}

/* AVAILABILITY CTA */

.availability-cta-card {
  position: relative;
  overflow: hidden;
  margin: 6px 0 18px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.availability-cta-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -130px;
  background: radial-gradient(circle, rgba(143,174,209,0.18), transparent 70%);
  pointer-events: none;
}

.availability-cta-card > * {
  position: relative;
  z-index: 1;
}

.availability-cta-card h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 400;
}

.availability-btn,
.primary-book-btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  transition: 0.2s ease;
}

.availability-btn,
.primary-book-btn,
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 18px 28px;
  box-shadow: 0 16px 32px rgba(143,174,209,0.28);
}

.btn-secondary {
  background: #eef4fb;
  color: var(--blue-deep);
  border: 1px solid var(--blue-soft);
  padding: 18px 28px;
}

.availability-btn:hover,
.primary-book-btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(143,174,209,0.32);
}

/* TRUST BAR */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin-top: 18px;
}

.trust-item {
  padding: 24px 22px;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(232,224,216,0.9);
}

.trust-item strong {
  display: block;
  color: #1f2740;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* SIDEBAR */

.profile-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.booking-card,
.sidebar-card {
  padding: 26px;
}

.availability-sidebar-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(246,249,253,0.9));
  border-color: rgba(143,174,209,0.45);
  box-shadow: var(--shadow-blue);
}

.availability-sidebar-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -110px;
  background: radial-gradient(circle, rgba(143,174,209,0.24), transparent 70%);
  pointer-events: none;
}

.availability-sidebar-card > * {
  position: relative;
  z-index: 1;
}

.booking-card h3 {
  font-size: 30px;
}

.primary-book-btn {
  width: 100%;
  margin-top: 22px;
  text-align: center;
}

.cancel-note {
  text-align: center;
  margin-top: 14px !important;
  font-size: 12px !important;
  font-weight: 700;
  color: var(--muted) !important;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.mini-map {
  overflow: hidden;
  border-radius: 22px;
  height: 190px;
  background: var(--blue-soft);
  border: 1px solid rgba(232,224,216,0.95);
}

.mini-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facts-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.facts-list div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(248,247,245,0.76);
  border: 1px solid rgba(232,224,216,0.9);
}

.facts-list strong {
  display: block;
  color: #1f2740;
  font-size: 14px;
  margin-bottom: 5px;
}

.facts-list span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

/* FOOTER */

.profile-footer {
  background-color: #F8F7F5;
  margin-top: 10px;
  padding: 46px 0 20px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 600;
  color: var(--blue);
}

.footer-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.footer-column a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: 0.2s ease;
}

.footer-column a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* RESPONSIVE */

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

  .profile-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .availability-sidebar-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .profile-shell,
  .profile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(calc(100% - 40px), var(--page-width));
  }

  .profile-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .profile-nav-links {
    width: 100%;
    order: 3;
    flex-wrap: wrap;
    gap: 18px;
  }

  .profile-hero-grid,
  .content-grid,
  .availability-cta-card,
  .trust-bar,
  .profile-sidebar {
    grid-template-columns: 1fr;
  }

  .hero-main-image {
    height: 340px;
  }

  .hero-side-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item {
    height: 120px;
  }

  .summary-stats {
    grid-template-columns: 1fr 1fr;
  }

  .summary-stat + .summary-stat {
    border-left: 0;
  }

  .summary-stat:nth-child(even) {
    border-left: 1px solid rgba(232,224,216,0.9);
  }

  .summary-stat:nth-child(n + 3) {
    border-top: 1px solid rgba(232,224,216,0.9);
  }

  .trust-item + .trust-item {
    border-left: 0;
    border-top: 1px solid rgba(232,224,216,0.9);
  }

  .footer-inner,
  .footer-links {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .profile-main {
    padding-top: 22px;
  }

  .profile-nav-right {
    width: auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }

  .profile-nav-cta {
    padding: 12px 18px;
  }

  .back-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero-card,
  .content-card,
  .sidebar-card,
  .booking-card,
  .availability-cta-card {
    padding: 22px;
    border-radius: 26px;
  }

  .summary-head h1 {
    font-size: 44px;
  }

  .hero-main-image {
    height: 280px;
  }

  .hero-side-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 150px;
  }

  .summary-stats,
  .mini-check-grid {
    grid-template-columns: 1fr;
  }

  .summary-stat:nth-child(even),
  .summary-stat + .summary-stat {
    border-left: 0;
  }

  .summary-stat + .summary-stat {
    border-top: 1px solid rgba(232,224,216,0.9);
  }

  .profile-tabs {
    border-radius: 26px;
  }

  .profile-tabs a {
    width: 100%;
    text-align: center;
  }

  .service-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .availability-btn,
  .primary-book-btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

.preview-mode-banner {
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef4fb, #ffffff);
  border: 1px solid rgba(143, 174, 209, 0.35);
  color: #3f3a36;
  box-shadow: 0 14px 34px rgba(63, 58, 54, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-mode-banner strong {
  font-size: 15px;
  font-weight: 800;
  color: #4f7dae;
}

.preview-mode-banner span {
  font-size: 14px;
  color: #6f685f;
}

@media (max-width: 700px) {
  .preview-mode-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* PROFILE PAGE - MOBILE BURGER MENU */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 780px) {
  .profile-header {
    padding: 18px 0 8px;
  }

  .profile-nav,
  .profile-shell,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 28px);
  }

  .profile-nav {
    gap: 14px;
  }

  .profile-brand-name {
    font-size: 26px;
  }

  .profile-nav-links,
  .profile-nav-link,
  .profile-nav-cta {
    display: none !important;
  }

  .profile-nav-right {
    margin-left: auto;
  }

  .mobile-menu-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.86);
    color: var(--text);
    font-size: 22px;
    font-family: inherit;
    cursor: pointer;
  }

  .mobile-menu.open {
    display: grid;
    gap: 10px;
    width: calc(100% - 28px);
    margin: 14px auto 0;
    padding: 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
  }

  .mobile-menu.open a {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
    color: var(--text);
  }

  .mobile-menu.open a:hover {
    background: var(--blue-soft);
    color: var(--blue-deep);
  }
}

/* PROFILE PAGE - MOBILE HEADER FIX */
@media (max-width: 900px) {
  .profile-header {
    padding: 14px 0 8px !important;
  }

.profile-nav {
    width: calc(100% - 28px) !important;
    min-height: 58px !important;
    margin: 0 auto !important;
    padding: 10px 12px !important;

    display: flex !important;
    align-items: center !important;

    justify-content: flex-start !important;
}

.profile-brand {
    display: flex !important;
    align-items: center !important;
}

.profile-nav-right {
    margin-left: auto !important;

    display: flex !important;
    align-items: center !important;
}

  .profile-brand-logo {
    width: 30px !important;
    height: 30px !important;
  }

  .profile-brand-name {
    font-size: 21px !important;
  }

  .profile-main {
    padding-top: 18px !important;
  }
}

body.app-mode .profile-footer,
body.app-mode footer {
  display: none !important;
}