/* public/assets/attractions.css */

.attractions-page{ max-width: 980px; }

/* Search */
.attractions-search{ display:flex; gap:10px; align-items:center; }
.attractions-search .ui-input{ width: min(420px, 62vw); }

/* Grid */
.attractions-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){ .attractions-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px){
  .attractions-grid{ grid-template-columns: 1fr; }
  .attractions-search{ width:100%; flex-direction:column; align-items:stretch; }
  .attractions-search .ui-input{ width:100%; }
}

.at-card{
  display:block;
  overflow:hidden;
  text-decoration:none;
  color: inherit;
  transition: filter .15s ease, transform .08s ease, box-shadow .15s ease;
}
.at-card:hover{ filter: brightness(1.01); box-shadow: 0 10px 24px rgba(2,6,23,.08); }
.at-card:active{ transform: translateY(1px); }

.at-card__media{
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: rgba(241,245,249,.7);
  border-bottom: 1px solid rgba(148,163,184,.18);
  overflow: hidden;
}
.at-card__media img{ width:100%; height:100%; object-fit:cover; }
.at-card__placeholder{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  color: rgba(100,116,139,.9); font-weight:900;
}
.at-card__chips{ position:absolute; left:10px; top:10px; display:flex; gap:8px; flex-wrap:wrap; }
.at-card__body{ padding:12px; }
.at-card__title{ font-weight:900; color: rgba(15,23,42,.95); line-height:1.2; margin-bottom:6px; }
.at-card__meta{ color: rgba(100,116,139,.95); font-weight:700; font-size:13px; margin-bottom:6px; }
.at-card__excerpt{ color: rgba(15,23,42,.80); font-size:14px; line-height:1.45; }

.attractions-pager{ margin-top:14px; }

/* Show */
.at-head{ overflow:hidden; }
.at-head__media{ border-bottom: 1px solid rgba(148,163,184,.18); background: rgba(241,245,249,.7); }
.at-hero{ width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block; }
.at-hero--placeholder{
  display:flex; align-items:center; justify-content:center;
  color: rgba(100,116,139,.9); font-weight:900;
}
.at-head__body{ padding:12px; }
.at-head__top{ display:flex; gap:12px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; }
.at-title{ margin:0; }
.at-address{ margin-top:4px; }
.at-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }

.at-fav-btn.is-active{
  border-color: rgba(245, 158, 11, .45);
  background: rgba(255, 251, 235, .95);
}

.at-excerpt{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.20);
  background: rgba(241,245,249,.55);
  color: rgba(15,23,42,.88);
  line-height:1.5;
  font-weight:650;
}

.at-block{ margin-top:12px; padding:12px; }
.at-block__title{ font-weight:900; margin-bottom:10px; color: rgba(15,23,42,.92); }

/* Gallery */
.at-gallery{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:10px; }
@media (max-width: 860px){ .at-gallery{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 560px){ .at-gallery{ grid-template-columns: repeat(2, minmax(0,1fr)); } }

.at-gimg{
  border:0; padding:0; background:transparent; cursor:pointer;
  border-radius:14px; overflow:hidden;
  box-shadow:0 6px 16px rgba(2,6,23,.06);
  border:1px solid rgba(148,163,184,.18);
}
.at-gimg img{ width:100%; height:100%; aspect-ratio:1/1; object-fit:cover; display:block; }

/* Lightbox */
.at-lightbox{
  width: min(92vw, 980px);
  border:0; padding:0;
  border-radius:16px; overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,.20);
}
.at-lightbox::backdrop{ background: rgba(2,6,23,.62); }
.at-lightbox__close{
  position:absolute; top:10px; right:10px;
  border:0; width:40px; height:40px; border-radius:14px;
  cursor:pointer; font-weight:900;
  background: rgba(255,255,255,.92);
}
.at-lightbox__img{
  width:100%; height:auto; display:block;
  max-height:86vh; object-fit:contain;
  background:#000;
}

/* Map */
.at-map{
  border-radius:14px; overflow:hidden;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(241,245,249,.7);
}
.at-map iframe{ width:100%; height:360px; border:0; display:block; }
@media (max-width: 560px){ .at-map iframe{ height:280px; } }
.at-map__actions{ margin-top:10px; }

/* Comments */
.at-comment-form{ display:flex; flex-direction:column; gap:10px; }
.at-comment-actions{ display:flex; justify-content:flex-end; }
.at-comments{ display:flex; flex-direction:column; gap:10px; }

.at-comment{
  border:1px solid rgba(148,163,184,.18);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(255,255,255,.88);
}
.at-comment__head{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:6px;
}
.at-comment__user{ font-weight:900; color: rgba(15,23,42,.92); }
.at-comment__body{
  color: rgba(15,23,42,.88);
  line-height:1.5;
  white-space: pre-wrap;
}

.at-comment__photos{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap: wrap;
}
.at-cphoto{
  display:block;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 6px 16px rgba(2,6,23,.06);
}
.at-cphoto img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.at-comment__actions{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
}

