/* -------------------------------
TIN MÔI GIỚI CÁ NHÂN CSS
-------------------------------- */

:root {
  --green: #003c47;
  --green-light: #0a6d82;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}
.agent-banner {
  background: linear-gradient(135deg, #003c47, #0a6d82);
  padding: 45px 20px;
  text-align: center;
  color: #fff;
}

.agent-banner h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #e5b85a;
}

.agent-banner p {
  max-width: 700px;
  margin: auto;
  opacity: 0.9;
}

.agent-filters {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.agent-filters input,
.agent-filters select {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  min-width: 180px;
}

/* ===== LIST ===== */
.agent-container {
  max-width: 1200px;
  margin: auto;
  padding: 35px 16px;
}

.agent-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== CARD ===== */
.agent-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.agent-card:hover {
  transform: translateY(-6px);
}

.agent-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--green);
  margin-bottom: 10px;
}

.agent-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}

.badge {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}

.badge.blue {
  background: #0a6d82;
}
.agent-role {
  font-size: 12px;
  color: #0a6d82;
  font-weight: 600;
  margin-top: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.agent-area {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0;
}

.desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== BUTTONS ===== */
.agent-actions {
  display: flex;
  gap: 10px;
}

.btn-call,
.btn-zalo {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}

.btn-call {
  background: #0a6d82;
}
.btn-zalo {
  background: #0068ff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .agent-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .agent-list {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------
CHI TIẾT MÔI GIỚI CÁ NHÂN CSS
-------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.h2,
.h2 {
  font-size: 25px;
  line-height: 42px;
}
.page-desc {
  font-size: 15px;
  line-height: 25px;
  color: #fff;
  margin: 12px 0 24px;
}
.diachimg {
  margin-top: 7px;
  color: #d4a017;
  line-height: 24px;
}
/* -------------------------------
   LAYOUT 2 COLUMN
-------------------------------- */
.agent-wrap {
  max-width: 1300px;
  margin: 35px auto;
  padding: 15px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 35px;
}

/* -------------------------------
   CARD BASE
-------------------------------- */
.cardmoigioi {
  background: white;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  margin-bottom: 30px;
}
.cardmoigioi:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* -------------------------------
   AGENT PROFILE
-------------------------------- */
.agent-header {
  display: flex;
  gap: 22px;
}
.agent-photo {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Contact info */
.agent-info h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
  color: #d4a017;
}
.agent-info p {
  color: #003c47;
  font-size: 15px;
}
.agent-info ul {
  margin-top: 12px;
}
.agent-info ul li {
  list-style: none;
  padding: 6px 0;
  font-size: 15.5px;
  color: #003c47;
}

/* -------------------------------
   TABS
-------------------------------- */
.tabs {
  display: flex;
  gap: 28px;
  margin: 22px 0;
  margin-top: 51px;
}
.tab {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding-bottom: 8px;
  color: #555;
  transition: 0.25s;
}
.tab:hover {
  color: #ff7f3f;
}
.tab.active {
  color: #ff7f3f;
  border-bottom: 3px solid #ff7f3f;
}

/* -------------------------------
   TAB CONTENT
-------------------------------- */
.tab-panel {
  display: none;
}
.tab-panel.show {
  display: block;
}

/* -------------------------------
   LISTING GRID
-------------------------------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
@media (max-width: 768px) {
  .listing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.3s;
}
.item:hover img {
  transform: scale(1.05);
}
.item-body {
  padding: 18px;
}
.item-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}
.item-body p {
  color: #666;
}
.price {
  color: #ff6a00;
  font-size: 20px;
  font-weight: bold;
  margin-top: 8px;
}

/* -------------------------------
   RIGHT SIDEBAR (STICKY)
-------------------------------- */
.sticky {
  position: sticky;
  top: 25px;
}

/* -------------------------------
   CONTACT FORM
-------------------------------- */
.form h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}
.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  font-size: 15.5px;
  transition: 0.25s;
}
.form input:focus,
.form textarea:focus {
  border-color: #ff7f3f;
  box-shadow: 0 0 6px rgba(255, 125, 60, 0.35);
}

.btn-send {
  width: 46%;
  background: #003c47;
  color: white;
  padding: 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  transition: 0.3s;
  margin: auto;
}
.btn-send:hover {
  background: #ff6a00;
  box-shadow: 0 6px 20px rgba(255, 120, 50, 0.35);
  transform: translateY(-2px);
}

.btn-call {
  width: 35%;
  background: #0a6d82;
  border: 1px solid #0fb9b1;
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-call:hover {
  background: #0fb9b1;
  color: white;
}

/* -------------------------------
   FEATURED LIST
-------------------------------- */
.f-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.f-item img {
  width: 95px;
  height: 75px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.f-item .price {
  margin-top: 6px;
}

/* -------------------------------
   MOBILE STYLE
-------------------------------- */
@media (max-width: 900px) {
  .agent-wrap {
    grid-template-columns: 1fr;
  }
  .agent-header {
    flex-direction: column;
    text-align: center;
  }
  .agent-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
  }

  /* Sang trọng hơn trên mobile */
  .item img {
    height: 200px;
    border-radius: 13px;
  }
  .cardmoigioi {
    border-radius: 20px;
  }
}

/* =============================
  LIÊN HỆ PHẢI CONTAINER
   ============================= */
.agent-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-family: "roboto", sans-serif;
}

/* =============================
   TOP INFO
   ============================= */
.agent-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.agent-avatar img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e5e5e5;
}

.agent-info h3 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

.agent-info .role {
  font-size: 15px;
  color: #d4a017;
  margin-top: 3px;
}

.agent-info .exp,
.agent-info .support {
  font-size: 13px;
  color: #777;
  margin-top: 3px;
}
.contact-card {
  /* display: flex; */
  align-items: center;
  gap: 14px;
  /* padding: 14px 18px; */
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  margin-bottom: 27px;
}
/* =============================
   ACTION BUTTONS INLINE
   ============================= */
.agent-actions-inline {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}

.btn-circle {
  flex: 1;
  padding: 14px 0;
  border-radius: 14px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: 0.3s ease;
}

/* CALL */
.btn-circle.call {
  background: rgba(0, 196, 204, 0.25);
  color: #003c47;
  border-color: #0fb9b1;
}
.btn-circle.call:hover {
  background: #ffdada;
  box-shadow: 0 5px 18px rgba(200, 35, 35, 0.28);
}

/* ZALO */
.btn-circle.zalo {
  background: #e8f1ff;
  color: #0058cc;
  border-color: #c7dcff;
}
.btn-circle.zalo:hover {
  background: #dce9ff;
  box-shadow: 0 5px 18px rgba(0, 88, 204, 0.28);
}

/* =============================
   LISTING BUTTON
   ============================= */
.btn-listing {
  display: block;
  text-align: center;
  background: #0fb9b1;
  color: #fff;
  padding: 14px;
  font-size: 17px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}
.btn-listing:hover {
  background: #e88800;
}

/* =============================
   SOCIAL
   ============================= */
.agent-socials {
  margin: 18px 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.agent-socials a {
  font-size: 18px;
  color: #444;
  transition: 0.3s;
}
.agent-socials a:hover {
  color: #000;
}

/* =============================
   RATING
   ============================= */
.agent-rating {
  font-size: 14px;
  color: #777;
  text-align: center;
}
.agent-rating span {
  margin-left: 6px;
}
@media (min-width: 768px) {
  .agent-card {
    width: 100%;
  }
  .btn-circle {
    font-size: 16px;
  }
}
