/* ============================================================
   Residence il Casale Cortona — property.css
   Apartment pages (standalone)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables (shared with main app) ───────────────────── */
:root {
  --prop-primary:  #4A7C59;
  --prop-accent:   #4A7C59;
  --prop-bg:       #F6FAF7;
  --prop-surface:  #FFFFFF;
  --prop-surface2: #EDF5F0;
  --prop-border:   #D3E8DA;
  --prop-text:     #0F1F14;
  --prop-text2:    #3D5445;
  --prop-text3:    #7A9B84;
  --primary:       #4A7C59;
  --r:             16px;
  --r-sm:          10px;
  --r-xs:          6px;
  --shadow:        0 2px 16px rgba(15,31,20,0.07);
}

/* ── Per-apartment accent colours ───────────────────────── */
.apt-glicine   { --prop-accent: #7B5EA7; --prop-lt: rgba(123,94,167,0.12);  --prop-grad-start: #3D2066; --prop-grad-end: #A882D4; }
.apt-ortensia  { --prop-accent: #5B7EA7; --prop-lt: rgba(91,126,167,0.12);  --prop-grad-start: #1E3F66; --prop-grad-end: #82AACC; }
.apt-rosa      { --prop-accent: #C05473; --prop-lt: rgba(192,84,115,0.12);  --prop-grad-start: #6B1A36; --prop-grad-end: #E08099; }
.apt-mughetto  { --prop-accent: #5A9E6F; --prop-lt: rgba(90,158,111,0.12);  --prop-grad-start: #1D4A2E; --prop-grad-end: #88C49A; }
.apt-geranio   { --prop-accent: #C0503A; --prop-lt: rgba(192,80,58,0.12);   --prop-grad-start: #6B1A0C; --prop-grad-end: #E08070; }
.apt-girasole  { --prop-accent: #C09540; --prop-lt: rgba(192,149,64,0.12);  --prop-grad-start: #6B4A10; --prop-grad-end: #E0C070; }
.apt-gardenia  { --prop-accent: #4A7C59; --prop-lt: rgba(74,124,89,0.12);   --prop-grad-start: #1D4A2E; --prop-grad-end: #7ABD95; }
.apt-ciclamino { --prop-accent: #B54080; --prop-lt: rgba(181,64,128,0.12);  --prop-grad-start: #5C1440; --prop-grad-end: #DC82B5; }
.apt-mimosa    { --prop-accent: #C0A540; --prop-lt: rgba(192,165,64,0.12);  --prop-grad-start: #6B5410; --prop-grad-end: #E0CC80; }
.apt-papavero  { --prop-accent: #C03A3A; --prop-lt: rgba(192,58,58,0.12);   --prop-grad-start: #6B0C0C; --prop-grad-end: #E08080; }
.apt-exclusive { --prop-accent: #8A6520; --prop-lt: rgba(138,101,32,0.12);  --prop-grad-start: #3A2A08; --prop-grad-end: #C8A050; }

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--prop-bg);
  color: var(--prop-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header ──────────────────────────────────────────────── */
#prop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--prop-surface);
  border-bottom: 1px solid var(--prop-border);
  box-shadow: 0 1px 12px rgba(15,31,20,0.06);
}
.prop-header-inner {
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.prop-header-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--prop-lt);
  flex-shrink: 0;
  transition: background 0.2s;
}
.prop-header-home img {
  width: 28px;
  height: 28px;
  display: block;
}
.prop-header-home:active { background: var(--prop-accent); }
.prop-header-title {
  flex: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--prop-text);
}
.prop-header-title small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #9C8B80;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prop-header-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--prop-lt);
  color: var(--prop-accent);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.prop-header-call:active { background: var(--prop-accent); color: #fff; }
.prop-header-call svg { width: 18px; height: 18px; }
.prop-header-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--prop-lt);
  color: var(--prop-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}
.prop-header-lang:active { background: var(--prop-accent); color: #fff; }

/* ── Hero ────────────────────────────────────────────────── */
.prop-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.prop-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.20) 50%,
    transparent 100%
  );
}

.prop-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 28px;
  color: #fff;
}

.prop-hero-back {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  z-index: 2;
}

.prop-hero-lang {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  font-family: inherit;
  z-index: 2;
}

.prop-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-bottom: 4px;
}

.prop-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.prop-guide-small {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.prop-stats {
  display: flex;
  background: var(--prop-surface);
  border-bottom: 1px solid var(--prop-border);
}

.prop-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-right: 1px solid var(--prop-border);
  text-align: center;
}

.prop-stat:last-child { border-right: none; }

.prop-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--prop-accent);
  line-height: 1;
}

.prop-stat-label {
  font-size: 10px;
  color: var(--prop-text3);
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Tags ────────────────────────────────────────────────── */
.prop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--prop-border);
  background: var(--prop-surface);
}

.prop-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--prop-surface2);
  color: var(--prop-text2);
  border: 1px solid var(--prop-border);
}

/* ── Body ────────────────────────────────────────────────── */
.prop-body {
  padding: 0 0 48px;
}

/* ── Section ─────────────────────────────────────────────── */
.prop-section {
  padding: 20px 16px 0;
}

.prop-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prop-text3);
  margin-bottom: 10px;
}

/* ── Cards ───────────────────────────────────────────────── */
.prop-card {
  background: var(--prop-surface);
  border-radius: var(--r);
  border: 1px solid var(--prop-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.prop-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--prop-border);
}

.prop-item:last-child { border-bottom: none; }

.prop-icon {
  font-size: 18px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  flex-shrink: 0;
  background: var(--prop-surface2);
}

.prop-icon-accent {
  background: rgba(var(--prop-accent-rgb, 74, 124, 89), 0.10);
}

.prop-item-text { flex: 1; }

.prop-item-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--prop-text);
  margin-bottom: 2px;
}

.prop-item-text p {
  font-size: 13px;
  color: var(--prop-text2);
  line-height: 1.55;
}

/* ── Check-in Steps ─────────────────────────────────────── */
.ci-step {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--prop-border);
}

.ci-step:last-child { border-bottom: none; }

.ci-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--prop-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ci-step-content { flex: 1; }

.ci-step-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--prop-text);
  margin-bottom: 4px;
}

.ci-step-content p {
  font-size: 13px;
  color: var(--prop-text2);
  line-height: 1.55;
}

/* ── Badge ───────────────────────────────────────────────── */
.prop-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  background: rgba(74, 124, 89, 0.10);
  color: #2E7D52;
}

/* ── Photo Gallery ───────────────────────────────────────── */
.prop-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 16px;
}

.prop-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--r-xs);
}

.prop-gallery img:first-child {
  grid-column: span 2;
  height: 180px;
}

/* ── Emergency Highlight ─────────────────────────────────── */
.prop-highlight {
  background: linear-gradient(135deg, #F4FAF6, #EBF5ED);
  border: 1.5px solid #C8E0D0;
  border-radius: var(--r-sm);
  padding: 14px;
  margin-top: 0;
  font-size: 13px;
  color: var(--prop-text2);
  line-height: 1.65;
}

/* ── Action Buttons ──────────────────────────────────────── */
.prop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 16px 0;
}

.prop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.prop-btn-primary {
  background: var(--prop-accent);
  color: #fff;
}

.prop-btn-secondary {
  background: rgba(74, 124, 89, 0.10);
  color: var(--prop-accent);
}

.prop-btn:active { transform: scale(0.96); }

.prop-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Footer ──────────────────────────────────────────────── */
.prop-footer {
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid var(--prop-border);
  margin-top: 24px;
}

.prop-footer a {
  font-size: 14px;
  font-weight: 500;
  color: var(--prop-accent);
}

/* ── Google Maps Button ─────────────────────────────────── */
.prop-map-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--prop-surface);
  border-radius: var(--r);
  border: 1px solid var(--prop-border);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.prop-map-btn:active { opacity: 0.8; transform: scale(0.98); }
.prop-map-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prop-surface2);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.prop-map-text { flex: 1; min-width: 0; }
.prop-map-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--prop-text);
}
.prop-map-text span { font-size: 12px; color: var(--prop-text3); }
.prop-map-arrow { width: 16px; height: 16px; color: var(--prop-text3); flex-shrink: 0; }

/* ── Location Steps ─────────────────────────────────────── */
.prop-steps { margin-top: 0; }
.prop-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--prop-border);
}
.prop-step:last-child { border-bottom: none; }
.prop-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--prop-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.prop-step-body { flex: 1; min-width: 0; }
.prop-step-body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--prop-text);
  margin-bottom: 8px;
}
.prop-step-img { border-radius: var(--r-sm); overflow: hidden; }
.prop-step-img + .prop-step-img { margin-top: 6px; }
.prop-step-img img { width: 100%; height: auto; display: block; border-radius: var(--r-sm); }

/* ── Key Box ────────────────────────────────────────────── */
.prop-key-box {
  background: var(--prop-surface);
  border-radius: var(--r);
  border: 1px solid var(--prop-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 16px;
}
.prop-key-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.prop-key-header span { font-size: 20px; }
.prop-key-header strong { font-size: 14px; font-weight: 600; color: var(--prop-text); }
.prop-key-text {
  font-size: 13px;
  color: var(--prop-text2);
  line-height: 1.55;
  margin-bottom: 12px;
}
.prop-key-img { border-radius: var(--r-sm); overflow: hidden; }
.prop-key-img img { width: 100%; height: auto; display: block; }

/* ── Bottom Navigation (apartment pages) ─────────────────── */
#prop-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--prop-border);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}

.prop-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--prop-text3);
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}

.prop-nav-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.prop-nav-btn.active,
.prop-nav-btn:active {
  color: var(--prop-accent);
}

/* push body content above fixed nav */
.prop-body {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

/* ── Desktop guard ────────────────────────────────────────── */
@media (min-width: 600px) {
  html {
    background: #D8E8DC;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px 0;
  }
  body {
    width: 430px;
    max-width: 430px;
    border-radius: 40px;
    box-shadow: 0 32px 80px rgba(15,31,20,0.22), 0 0 0 1px rgba(0,0,0,0.08);
    clip-path: inset(0 round 40px);
    min-height: auto;
    margin: 0;
  }
  /* Header/nav corner radii are now handled by body clip-path */
  #prop-header { border-radius: 0; overflow: visible; }
  #prop-bottom-nav { border-radius: 0; }
}
